使用conda指令创建虚拟环境并激活
conda create -n env_name python=3.8 -y
conda activate env_name
安装pytorch包
pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
使用conda指令创建虚拟环境并激活
conda create -n env_name python=3.8 -y
conda activate env_name
安装pytorch包
pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html