m0_70680242 2022-07-29 10:14 采纳率: 82.2%
浏览 186
已结题

opencv调用及安装错误

麻了
C:\Users\admintor>pip install cv2
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
WARNING: You are using pip version 21.2.4; however, version 22.2 is available.
You should consider upgrading via the 'C:\Program Files\Python310\python.exe -m pip install --upgrade pip' command.

C:\Users\admintor>pip install --upgrade cv2
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
WARNING: You are using pip version 21.2.4; however, version 22.2 is available.
You should consider upgrading via the 'C:\Program Files\Python310\python.exe -m pip install --upgrade pip' command.

C:\Users\admintor>pip uninstall cv2
WARNING: Skipping cv2 as it is not installed.

pycharm上能被调用,输出cv2也没报错
库里没有这个包
但输入cv2.imread()他不会扩展(就是输入im会展示imread这个函数)
不懂啥情况
重点是在pycharm上调用cv2没有代码提示,输入代码标黄

  • 写回答

4条回答 默认 最新

  • 快乐小土狗 2022-07-29 10:46
    关注

    升级一下你的cv2库
    或者卸载重新装一下

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

问题事件

  • 系统已结题 8月6日
  • 已采纳回答 7月29日
  • 修改了问题 7月29日
  • 创建了问题 7月29日