pip install cv2 安裝報錯是一個常見現象:
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
解決方案一:
將CV2更改為opencv-python
pip install opencv-python
本方法解決不了則需使用國內的鏡像源來加速,克服有時候網絡不穩定時的網絡問題。
規則:
pip install 插件名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
代碼:
pip install opencv-python -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
成功啦、、、、