- ModuleNotFoundError: No module named ‘mxnet’
- ImportError: this version of pandas is incompatible with numpy
- ImportError: cannot import name ‘Image’
- ModuleNotFoundError: No module named ‘cv2’
- ModuleNotFoundError: No module named ‘yaml’
- ModuleNotFoundError: No module named ‘seaborn’
- ModuleNotFoundError: No module named ‘models’
ModuleNotFoundError: No module named ‘mxnet’
pip install mxnet
ImportError: this version of pandas is incompatible with numpy
ImportError: this version of pandas is incompatible with numpy < 1.15.4 your numpy version is 1.15.3. Please upgrade numpy to >= 1.15.4 to use this pandas version
这多半是当前python环境下安装了多个numpy导致的
解决办法是删除所有的numpy(conda remove numpy and pip uninstall numpy), 然后重新安装。
Pandas incompatible with numpy
ImportError: cannot import name ‘Image’
导入python图像处理模块时报错,如下图所示:
开始以为PIL模块没有安装,准备用pip安装时发现该模块已存在:
解决办法:考虑到有可能是版本过低的问题,就卸载掉pillow,重新安装了:
重新导入,没有报错!
ModuleNotFoundError: No module named ‘cv2’
- 问题:ModuleNotFoundError: No module named ‘cv2’ ( Pycharm 中 import cv2 出现错误)
2. 解决:安装cv2pip install opencv-python
(如果只用主模块,使用这个命令安装)pip install opencv-contrib-python
(如果需要用主模块和contrib模块,使用这个命令安装)ModuleNotFoundError: No module named ‘yaml’
安装pyyamlpip3 install pyyaml
ModuleNotFoundError: No module named ‘seaborn’
pip install seaborn
ModuleNotFoundError: No module named ‘models’
这是因为当前目录下没有models文件夹,把models文件夹拷贝到当前目录下即可。