安裝opencv4.4.0失敗,向大佬請教后換源成功安裝
之前使用如下命令:
pip install opencv-python
提示Looking in indexes:https://pypi.tuna.tsinghua.edu.cn/simple
ERROR:Could not find a version that satisfies the requirement opencv-python,
解決辦法:提示中網址為清華源,將其換為豆瓣源(大佬說更好用),將上述命令改為:
pip install -i http://pypi.douban.con/simple/ --trusted-host pypi.douban.com opencv-python
安裝成功,使用
pip list
查看是否安裝完成及其安裝版本,
成功安裝4.5.4.60,應該是最新版本,希望它可以向下兼容我的4.4.0,
第一次寫這種東西,有不足指出請指正!出現和我一樣問題的小伙伴可以參考一下~
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/380982.html
標籤:其他
上一篇:關于軟體測驗的更多介紹
