python库报错汇总
形如ModuleNotFoundError: No module named 'xxx'
的报错
首先先试一试pip install xxx
能安装就能解决,没有就看下面,只是我遇到的
ModuleNotFoundError: No module named ‘cv2’
pip install opencv-contrib-python
ModuleNotFoundError: No module named ‘colour.io’; ‘colour’ is not a package
pip install colour-science
No module named ‘cpuinfo’
pip install py-cpuinfo
ModuleNotFoundError: No module named ‘imageio‘
pip install imgaug
解决ModuleNotFoundError: No module named ‘skimage‘
pip install scikit-image
No module named ‘open_clip‘
pip install open_clip_torch
ERROR: No matching distribution found for triton
到madbuda/triton-windows-builds · HF Mirror下载对应windows构建包
cd 下载目录
pip install triton-3.0.0-cp311-cp311-win_amd64.whl # 文件名
其他
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘E:\conda\envs\deepl\Lib\site-packages\cv2\cv2.pyd’ Consider using the --user
option or check the permissions.
如他说添加--user
参数