1

I am using python 3.8.3 version, I tried to install torchvision and torch module and faced this error, none of them are installed. The error comes as ERROR:could not find a version that satisfies the requirement torch==1.4.0(from versions:0.1.2,0.1.2,post1,0.1.2.post2)

Error:No matching distribution found for torch==1.4.0
5
  • First upgrade pip Commented Jun 22, 2020 at 11:41
  • @jpnadas done as per your advice Commented Jun 22, 2020 at 11:46
  • @OsadhiVirochanaJayasingheSi I tried but still seems to be in error Commented Jun 22, 2020 at 11:47
  • How are you trying to install it? pip, conda, compiling from source? Commented Jun 22, 2020 at 12:06
  • @jpnadas by using pip Commented Jun 22, 2020 at 12:08

1 Answer 1

3

According to PyTorch's website, you must specify if you are using cpu or the version of CUDA when installing from pip.

For instance, if I wanted to install on a Linux system without CUDA, version 1.5.1 of PyTorch, I would run:

pip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html

You can use the link I provided above to get the syntax for your specific environment.

Sign up to request clarification or add additional context in comments.

2 Comments

for windows 10?
go on the link, select windows and follow the instruction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.