记录pytorch学习遇到的包
1.ImportError: cannot import name ‘PILLOW_VERSION’
torchvision 模块内import pillow的时候发现找不到PILLOW_VERSION, 但是已经安装了pip3 install pillow==7.0.0,默认最新版本为7.0.0
pip3 install 'pillow<7.0.0'
2.pip安装错误 Beginning with Matplotlib 3.1, Python 3.6 or above is required
如果不升python 版本的话, 降低要安装的matplotlib版本。
出现这个问题,安装的版本应该是matplotlib 3.1
试着降低版本
pip install matplotlib==3.0
用国内源的话
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib==3.0
3.ImportError: No module named pandas
sudo apt-get update
sudo apt-get install python-pandas
4.ImportError:No module named skimage
管理员权限
pip install scikit-image
scikit-image 0.16+ supports only Python 3.6 and above.
pip3 install 'scikit-image<0.15'
5.ImportError: No module named ‘numpy.testing.decorators’
来源:CSDN
作者:lizhiyuanbest
链接:https://blog.csdn.net/lizhiyuanbest/article/details/104044494