报错修改汇总
1、Tensorflow报错如下:
查看numpy版本;
import numpy as np
print(np.__version__)
原因:numpy版本过高
解决办法:安装低版本numpy
pip install numpy==1.14.0 -i https://pypi.douban.com/simple
2、scipy与 Pillow的冲突
“AttributeError: module ‘scipy.misc’ has no attribute ‘imresize’”
错误如下:
我这里安装scipy1.2.1就解决了这个问题!!!
(看到有的博客是安装scipy1.2.1,Pillow = 6.0.0就可以运行)
3、Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题
解决方法:
安装libxcb-xinerama库:
sudo apt-get install libxcb-xinerama0
安装完成后,再次运行,发现已经修复问题: