I have tried numerous ways to install PyTorch:
我尝试了许多安装PyTorch的方法:
- !pip install torch --index-url=https://pypi.org/simple/
- !pip cache purge
- !conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c
- pytorch !pip install torch
and i have had no luck!
i am new to this so im not sure if thi si s a simple fix but i alos tried opening anaconda prompt and using:
我没有运气!我是新手,所以我不确定这是否是一个简单的修复方法,但我也尝试过打开anaconda提示符并使用:
- (base) C:>conda install pytorch torchvision torchaudio cpuonly -c pytorch
However i got this error: CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/pytorch/win-64/current_repodata.json
Elapsed: -
然而,我得到了这个错误:CondaHTTPError:url的HTTP 000连接失败https://conda.anaconda.org/pytorch/win-64/current_repodata.json运行时间:-
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.
'https//conda.anaconda.org/pytorch/win-64'
尝试检索此URL时发生HTTP错误。HTTP错误通常是间歇性的,一次简单的重试就会让你如愿以偿https://conda.anaconda.org/pytorch/win-64'
Lastly i tried this, and also got no where!
最后我试了一下,但也没有成功!
(base) C:>echo "$http_proxy"
"$http_proxy"
(基本)C:>echo“$http_proxy”“$http_poxy”
(base) C:>proxy_servers:
'proxy_servers:' is not recognized as an internal or external command,
operable program or batch file.
(基本)C:>proxy_servers:'proxy_servers:'未被识别为内部或外部命令、可操作程序或批处理文件。
Please help! if you could answer in the simplest way possible with steps for me to take that would be greatly appreciated! as i am still teaching myself so i may find it hard to understand!
请帮忙!如果你能以最简单的方式回答,并为我采取步骤,我将不胜感激!因为我还在自学,所以我可能会觉得很难理解!
Thank you!
非常感谢。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!