ImportError: No module named '‘’

版权声明:转载请注明出处 https://blog.csdn.net/sinat_39372048/article/details/82697797

1、  ImportError: No module named 'scipy'

sudo apt-get install python-scipy

2、ImportError: No module named h5py
 

sudo apt-get install libhdf5-dev
sudo apt-get install python-h5py

3、ImportError: No module named skimage

第一种可能是没有安装skimage或者部分依赖库没有安装:

python-skimage包依赖于matplotlib,scipy,pil,numpy和six。

首先安装依赖包:


sudo apt-get install python-matplotlib python-numpy python-pil python-scipy
sudo apt-get install build-essential cython
安装skimage包:

sudo apt-get install python-skimage

第二种可能是skimage版本需更新:

pip install scikit-image --upgrade

猜你喜欢

转载自blog.csdn.net/sinat_39372048/article/details/82697797