1、 安装Visual Studio 2019

2、安装插件Python

3、进入Python安装目录安装Pip

安装Pip
cd C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64


python -m pip install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple

更新Pip

python.exe -m pip install --upgrade pip

4、安装CV2,翻出去一下,不然安装老是失败

pip3 install opencv-python