Python
cv2
Python做一些图片,视频处理时,需要用到cv2库函数。但通过命令行安装cv2时,却会遇到如下错误。
# pip3 install cv2
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2
遇到这个错误换个名字安装就好了。
pip3 install opencv-python
# pip3 install opencv-python
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple