TensorFlowのインストールがうまくいきません。
エラーコードは以下です。
pi@aidev-1:~ $ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow/__init__.py", line 98, in <module>
from tensorflow_core import *
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/__init__.py", line 45, in <module>
from . _api.v2 import compat
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/_api/v2/compat/__init__.py", line 23, in <module>
from . import v1
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_core/_api/v2/compat/v1/__init__.py", line 664, in <module>
from tensorflow_estimator.python.estimator.api._v1 import estimator
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_estimator/__init__.py", line 10, in <module>
from tensorflow_estimator._api.v1 import estimator
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_estimator/_api/v1/estimator/__init__.py", line 12, in <module>
from tensorflow_estimator._api.v1.estimator import inputs
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_estimator/_api/v1/estimator/inputs/__init__.py", line 10, in <module> from tensorflow_estimator.python.estimator.inputs.numpy_io import numpy_input_fn
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_estimator/python/estimator/inputs/numpy_io.py", line 26, in <module>
from tensorflow_estimator.python.estimator.inputs.queues import feeding_functions
File "/home/pi/.local/lib/python3.7/site-packages/tensorflow_estimator/python/estimator/inputs/queues/feeding_functions.py", line
40, in <module>
import pandas as pd
File "/home/pi/.local/lib/python3.7/site-packages/pandas/__init__.py", line 22, in <module>
from pandas.compat import (
File "/home/pi/.local/lib/python3.7/site-packages/pandas/compat/__init__.py", line 15, in <module>
from pandas.compat.numpy import (
File "/home/pi/.local/lib/python3.7/site-packages/pandas/compat/numpy/__init__.py", line 7, in <module>
from pandas.util.version import Version
File "/home/pi/.local/lib/python3.7/site-packages/pandas/util/__init__.py", line 1, in <module>
from pandas.util._decorators import ( # noqa
File "/home/pi/.local/lib/python3.7/site-packages/pandas/util/_decorators.py", line 14, in <module>
from pandas._libs.properties import cache_readonly # noqa
File "/home/pi/.local/lib/python3.7/site-packages/pandas/_libs/__init__.py", line 13, in <module>
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 44 from C header, got 40 from PyObject
>>> tensorflow.version.VERSION
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'tensorflow' is not defined