Could not find a version that satisfies the requirement torch>=1.0.0?

77,053

Solution 1

This can also happen if your Python version is too new. Pytorch currently does not support past 3.7.9.

Figured out from: https://stackoverflow.com/a/58902298/5090928

Solution 2

This is the latest command for pytorch.

pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html

Solution 3

I had some difficulties with this as well. The steps I had to do was:

Install the latest version of PyTorch:

 pip3 install torch===1.3.1 torchvision===0.4.2 -f 
  https://download.pytorch.org/whl/torch_stable.html

Make sure you are installing with 64bit python version; otherwise, it won't work

Solution 4

I finally managed to solve this problem thanks to John Red' comment and serg06 answer. Here's what I've done :

  1. Install Python 3.7.9 and not newer.
  2. BUT make sure to install 64bits python

Every other combination failed for me.

Solution 5

I had this same issue while installing standfordnlp in my windows 10 system. Installing torch before installing stanfordnlp worked out for me. I have installed torch from pytorch official website.

Share:
77,053
Admin
Author by

Admin

Updated on February 12, 2022

Comments

  • Admin
    Admin 10 months

    Could not find a version that satisfies the requirement torch>=1.0.0 No matching distribution found for torch>=1.0.0 (from stanfordnlp)

  • James Nelson
    James Nelson about 3 years
    This answer works great, but the versions will need to be updated from the link provided by Ranjan pytorch official website. Essentially they are the same answer.
  • Abhishek Rai
    Abhishek Rai about 1 year
    This should be the most up voted answer here ...:)
  • Hamza Khanzada
    Hamza Khanzada 12 months
    I was previously using FROM python:3 which was giving error, I changed it to FROM python:3.7 in my Dockerfile and it got fixed.
  • Qwerty 12 months
    downgraded from 3.10.1 to 3.9.8 and it just worked. Thank you
  • Admin
    Admin 11 months
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
  • Luis Germán Orrego Campano 10 months
    very useful answer. I work with Visual Studio, I changed the version and type this command and "voila"... i get torch