python安裝cv2出現(xiàn)如下錯誤:Could not find a version that satisfies the requirement cv2
開始是報錯ModuleNotFoundError: No module named ‘cv2’
點擊安裝cv2,安裝未成功,查找相關(guān)資料,說是沒有cv2的包,實際上需要安裝的是一個叫opencv-python的包
安裝opencv-python包,打開cmd輸入:pip install opencv-python,等待安裝完成
回到pycharm中,找到文件-設置-項目-python解釋器,左上角有個+,點擊進去
文章來源:http://www.zghlxwxcb.cn/news/detail-539489.html
找到opencv-python,點擊“install Package”,提示安裝成功
接著再同樣的找到cv2,安裝就好了
文章來源地址http://www.zghlxwxcb.cn/news/detail-539489.html
到了這里,關(guān)于python安裝cv2出現(xiàn)如下錯誤:Could not find a version that satisfies the requirement cv2的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!