简体   繁体   English

我不知道如何安装 Pytorch

[英]I don't know how to install Pytorch

I don't know how to install Pytorch with pip on windows.我不知道如何在 windows 上安装 Pytorch 和 pip。 No commands I do will work.我所做的任何命令都不会起作用。 I tried: pip install torch我试过: pip 安装手电筒

pip3 install torch pip3 安装火炬

pip install pytorch pip 安装 pytorch

pip3 install pytorch pip3 安装 pytorch

pip install torch torchvisual torchaudio pip 安装手电筒 手电筒visual torchaudio

pip3 install torch torchvisual torchaudio pip3 安装火炬 torchvisual torchaudio

pip3 install torch==1.10.1+cu102 torchvision==0.11.2+cu102 torchaudio===0.10.1+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html pip3 install torch==1.10.1+cu102 torchvision==0.11.2+cu102 torchaudio===0.10.1+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html

and I used the website to try and install it but they all have this error:我使用该网站尝试安装它,但他们都有这个错误:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch错误:找不到满足火炬要求的版本(来自版本:无)错误:找不到火炬的匹配分布

You probably tried this on Python 3.10, there isn't a build for PyTorch on PyPI for 3.10 yet.您可能在 Python 3.10 上尝试过这个,PyPI 上还没有针对 3.10 的 PyTorch 的构建。 Just install Python 3.9 for the time being and you'll be fine with pip install torch .只需暂时安装 Python 3.9 ,您就可以使用pip install torch

(note, this was posted on 2021-12-25; hello people from the future, it seems likely that this won't last too long, so your problem may be a different one) (注意,这是在 2021-12-25 发布的;你好未来的人们,这似乎不会持续太久,所以你的问题可能是另一个问题)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM