使用镜像自动安装python opencv

首先升级一下pip

python -m pip install --upgrade pip

然后先安装numpy

pip install numpy  -i https://pypi.tuna.tsinghua.edu.cn/simple

最后安装对应的opencv即可

pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(环境配置,python,opencv)