Spyder+ipython下的坑

1. 通过路径读文件读不出来(none)时,试试在路径前加一个r,例如 cv2.imread(r"C:\Users\Virgile\Downloads\red.JPG")  

2. matplotlib不能一张纸画图:

Tools → Preferences → Ipython Console → Graphics → Graphics Backend → Backend: “automatic”

3.报错:could not initialize GLX,解决办法:在命令行输入:运行conda install qt=5.6* pyqt=5.6*即可

4.报错:No module named 'skimage',解决办法:在命令行输入:运行pip install scikit-image --upgrade即可

你可能感兴趣的:(Spyder+ipython下的坑)