1.查看虚拟环境有哪些
conda env list
2.创建虚拟环境
conda create -n tf_gpu python=3.6.5
3.激活虚拟环境
conda activate tf_gpu
4.安装pytorch
pip install torch==1.10 -i https://pypi.tuna.tsinghua.edu.cn/simple --target=E:softwareAnacondarun_fileenvspytorch_1.10Libsite-packages
或者
pip install torch===1.3.0 torchvision===0.4.1 -f https://download.pytorch.org/whl/torch_stable.html
5.cuda安装
选择对应版本



