我正在尝试安装Tensorflow 1.14和Keras 2.0,但是当我尝试导入它时,它总是给我一个问题。它似乎安装正确,但随后失败。
我正在运行Pi 3b + Linux raspberrypi 4.19.75-v7 +#1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU / Linux
它给我的错误是:
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/cvenv/lib/python3.5/site-packages/tensorflow/__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/pi/cvenv/lib/python3.5/site-packages/tensorflow/python/__init__.py", line 47, in <module>
import numpy as np
File "/home/pi/cvenv/lib/python3.5/site-packages/numpy/__init__.py", line 150, in <module>
from . import random
File "/home/pi/cvenv/lib/python3.5/site-packages/numpy/random/__init__.py", line 181, in <module>
from . import _pickle
File "/home/pi/cvenv/lib/python3.5/site-packages/numpy/random/_pickle.py", line 1, in <module>
from .mtrand import RandomState
ImportError: /home/pi/cvenv/lib/python3.5/site-packages/numpy/random/mtrand.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: PyFPE_jbuf