conda 环境中opencv 报错
如题,通过 conda install opencv
然后遇到
ImportError: DLL load failed while importing cv2: 找不到指定的模块。
参考网络相关答案
通过conda 卸载
然后通过 pip3 安装opencv-pyhton
https://stackoverflow.com/questions/75387197/anaconda-importerror-dll-load-failed-while-importing-cv2-the-specified-module
然后还是遇到报错
Error || `ERROR: These packages do not match the hashes from the requirements file
参考
https://blog.csdn.net/weixin_61514920/article/details/139238042
https://zhuanlan.zhihu.com/p/438709381
尝试
pip cache purge
pip3 install opencv-python==4.10.0.82 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
成功 自此成功导入