在配置python开发环境时,运行pycharm经常会缺失一些必要的模块,下面整理记录本人在实验时碰到的一些缺失问题和解决办法。
环境:windows+cuda 10.0+python3.6.7+pytorch1.2.0
打开 Anaconda Prompt 进入自己的虚拟环境:
例如我的就是 activte LY-pytorch
缺模块问题总结:
① ImportError:No module named skimage
pip install scikit-image
②pytorch报错:ValueError: num_samples should be a positive integer value, but got num_samples=0
解决:可能是没有放dataset数据集
③No module named 'cv2'
pip install opencv-python
④报错:ERROR: Could not find a version that satisfies the requirement pyyaml
ERR