第4篇 conda install pytorch==2.0.0报错
conda install pytorch==2.0.0报错
(pytorch) C:\Users\tt>conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/current_repodata.json>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
'https://repo.anaconda.com/pkgs/main/win-64'
改用:
pip安装
(pytorch) C:\Users\tt>pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
Looking in indexes: https://download.pytorch.org/whl/cu118
Requirement already satisfied: torch==2.0.0 in d:\anaconda3\envs\pytorch\lib\site-packages (2.0.0+cpu)
Requirement already satisfied: torchvision==0.15.1 in d:\anaconda3\envs\pytorch\lib\site-packages (0.15.
pytorch历史版本 - txwtech - 博客园
cpu与GPU对应的安装