使用国内镜像源安装opencv
在控制台输入命令:
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
验证安装:
step 1: 打开终端;
step 2: 输入python
,进入Python编译环境;
step 3: 粘贴以下代码,用来查看当前Python环境中OpenCV的版本号
import cv2 as cv
print(cv.__version__)
在控制台输入命令:
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
验证安装:
step 1: 打开终端;
step 2: 输入python
,进入Python编译环境;
step 3: 粘贴以下代码,用来查看当前Python环境中OpenCV的版本号
import cv2 as cv
print(cv.__version__)