(在anaconda prompt中运行指令)
1、检查并更新pip至最新
python -m ensurepip
python -m pip install --upgrade pip
2、安装torch包(2.4G,需要保证c盘有较多空间)
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
(在anaconda prompt中运行指令)
1、检查并更新pip至最新
python -m ensurepip
python -m pip install --upgrade pip
2、安装torch包(2.4G,需要保证c盘有较多空间)
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117