我按照下面的说明在我的Raspberry Pi上成功安装了Keras:https://medium.com/@abhizcc/installing-latest-tensor-flow-and-keras-on-raspberry-pi-aac7dbf95f2
sudo apt-get install python3-numpy
sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install python3-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install gfortran
sudo apt-get install python3-setuptools
sudo apt-get install python3-scipy
sudo apt-get update
sudo apt-get install python3-h5py
sudo pip3 install keras
但是,当我尝试将keras导入到jupyter笔记本(Python3)或python shell中时,它会显示
ModuleNotFoundError: No module named 'keras'
任何帮助都将不胜感激。
发布于 2019-03-13 04:30:27
您可以使用:which python
检查您正在使用的解释器,并使用pip show keras
检查keras的安装位置。
问题是,您在jupyter中使用的python和shell不是您为其安装keras的python。
https://stackoverflow.com/questions/55129590
复制相似问题