Previous PyTorch Versions | PyTorch
os库、shutil库,fnmatch,time,sys内置,不用安装,
依次安装cv2库、torch库、PIL库、numpy库、matplotlib库
#python3.7 cuda11.6
pip install opencv-python==4.4.0
pip install pillow
pip install numpy
pip install matplotlib
pip install GDAL-3.4.2-cp37-cp37m-win_amd64.whl
pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
安装torch直接复制网站,直接pip install torch==1.12会下载为cpu版本的
下载太慢,直接去网站下载
https://download.pytorch.org/whl/cu116