先卸载原有opencv(卸载干净 pip uninstall opencv-python),然后打开Ubuntu终端,查看环境为anaconda,环境为base,然后激活base(conda activate base),重新安装pip install opencv-python==version,后再pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U(直接安装会报错),再pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip install opencv-python==version,报错解决

文章来源于互联网,如有雷同请联系站长删除:Ubuntu中安装openc后仍报错找不到CV2

发表评论