Could not find a version that satisfies the requirement torch
Could not find a version that satisfies the requirement torch
Could not find a version that satisfies the requirement torch>=1.0.1 (from sentence-transformers) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2) #94
Comments
nikolabs11 commented Jan 12, 2020
Using Python 3.8.1
Windows 10 OS
Not sure what I need to do to fix this..
The text was updated successfully, but these errors were encountered:
nreimers commented Jan 12, 2020
Pytorch has no binaries yet for Python 3.8
pytorch/pytorch#29090
Easiest way would be to use Python 3.6 or Python 3.7
nikolabs11 commented Jan 12, 2020
I uninstalled python 3.8 and installed 3.7 but I am still getting the same error message.
nreimers commented Jan 12, 2020
Can you try to install pytorch as described here
https://pytorch.org/get-started/locally/
nikolabs11 commented Jan 12, 2020
I am getting the same message when I try to install pytorch through that link.
ERROR: Could not find a version that satisfies the requirement torch==1.3.1+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.3.1+cpu
nikolabs11 commented Jan 12, 2020
I was able to install pytorch using conda, what should I do now?
Thank you for all your time and help so far.
nreimers commented Jan 13, 2020
Maybe you need to remove the torch requirement from the setup-file.
nikolabs11 commented Jan 13, 2020
Same message. I tried installing the previous 1.0.1 version of torch since the current version is 1.3 and it didn’t change anything either.
Should I try switching my OS to Linux and use Ubuntu?
nikolabs11 commented Jan 13, 2020
I opened the setup.py file and deleted the torch requirement and it worked or so it seems. I used this example from your repository:
from sentence_transformers import SentenceTransformer
from sklearn.cluster import KMeans
corpus = [‘A man is eating food.’,
‘A man is eating a piece of bread.’,
‘A man is eating pasta.’,
‘The girl is carrying a baby.’,
‘The baby is carried by the woman’,
‘A man is riding a horse.’,
‘A man is riding a white horse on an enclosed ground.’,
‘A monkey is playing drums.’,
‘Someone in a gorilla costume is playing a set of drums.’,
‘A cheetah is running behind its prey.’,
‘A cheetah chases prey on across a field.’
]
corpus_embeddings = embedder.encode(corpus)
num_clusters = 5
clustering_model = KMeans(n_clusters=num_clusters)
clustering_model.fit(corpus_embeddings)
cluster_assignment = clustering_model.labels_
clustered_sentences = [[] for i in range(num_clusters)]
for sentence_id, cluster_id in enumerate(cluster_assignment):
clustered_sentences[cluster_id].append(corpus[sentence_id])
for i, cluster in enumerate(clustered_sentences):
print(«Cluster «, i+1)
print(cluster)
print(«»)
ERROR: Could not find a version that satisfies the requirement #969
Comments
navid-mahmoudian commented Feb 17, 2020
I get the following error:
ERROR: Could not find a version that satisfies the requirement torch-scatter==latest+cpu (from versions: 0.3.0, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 2.0.2)
ERROR: No matching distribution found for torch-scatter==latest+cpu
Environment
Checklist
The text was updated successfully, but these errors were encountered:
rusty1s commented Feb 17, 2020
There are no Python 3.5 wheels. Please upgrade to 3.6
navid-mahmoudian commented Feb 18, 2020
Thanks a lot. I installed python 3.6 and it is working now.
yacymelo commented Feb 26, 2020
I installed python 2.7 and have the same problem.
ERROR: Could not find a version that satisfies the requirement torch-scatter==latest+cpu (from versions: 0.3.0, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 2.0.2)
ERROR: No matching distribution found for torch-scatter==latest+cpu
Are there any specific requirements for the python version?
pohjie commented Feb 26, 2020
Hi @rusty1s, unfortunately I am facing similar issues too. Here is the information:
Environment
Checklist
rusty1s commented Feb 26, 2020
PyG (and its extensions) require Python >= 3.6 now. @pohjie What is the exact problem? You can also try to download the respective packages manually: https://pytorch-geometric.com/whl/torch-1.4.0.html
pohjie commented Feb 27, 2020
@rusty1s I had the similar error message as @navid-mahmoudian. However, downloading the respective packages manually as you have suggested worked. Thanks so much!
jaromiru commented Mar 17, 2020 •
Install latest version of the pip with:
pip install pip
asoket commented Sep 18, 2020
The command failed with following errors:
Collecting torch-scatter==latest+cu102
Could not find a version that satisfies the requirement torch-scatter==latest+cu102 (from versions: 0.3.0, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.5+cpu, 2.0.5+cu101, 2.0.5+cu102, 2.0.5+cu92)
No matching distribution found for torch-scatter==latest+cu102
rusty1s commented Sep 21, 2020
That is weird. Can you please try running
rusty1s commented Sep 22, 2020
It seems like the latest formulation is not supported by your system, so you can install the version that is printed in the error message. For example, for
ERROR: Could not find a version that satisfies the requirement torch==1.1.0.post2 #1475
Comments
rjurney commented Sep 30, 2019
Issue description
Snorkel requires a package version of torch that does not exist on PyPi.
Code example/repro steps
pip install snorkel
Expected behavior
System info
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
rjurney commented Sep 30, 2019
henryre commented Sep 30, 2019
Hi @rjurney, thanks for posting and digging around on this! As far as upgrading to PyTorch 1.2: there are some breaking changes, and so we’re planning to make the next version (likely v0.10.0) compatible with PyTorch 1.2. The staged PR (needs an update) is #1395.
Now for install issues: I wasn’t able to repro any issue with pip install snorkel on Ubuntu or OSX. I tried out pip-tools for the first time (just using snorkel==0.9.1 in requirements.in ), and here’s what I got:
Will one of those combos will work for you before we push the PyTorch 1.2 upgrade?
rjurney commented Sep 30, 2019
Thanks for checking this out. Interesting. I’m using Anaconda Python on Ubuntu and OS X, and when I look at the list of artifacts and there is a 1.1.0.post2 so. I’m confused. I’ve had another issue like this with Anaconda pip recently. Is it possible for you to reproduce with Anaconda?
henryre commented Sep 30, 2019
Hm ok you’re activating a new Anaconda environment, installing pip-tools, then using that to install Snorkel? And is there any chance you generated a requirements.txt on OSX then tried installing with that on Ubuntu?
rjurney commented Oct 4, 2019
@henryre Ok, yeah I think I did generate on Linux and then install in OS X. So that means I can only check in my requirements.in and not my requirements.txt and then I’ll have to generate it each install. That makes sense.
rjurney commented Oct 7, 2019
@henryre So now I’m running into problems with libraries like fast-bert require torch>=1.2.0 and snorkel requires less than this. I understand this is not strictly speaking a Snorkel problem, but wanted to describe my use case 🙂
henryre commented Oct 9, 2019
@rjurney got it. I expect more and more of these to pop up, and our next release will definitely be on PyTorch 1.2!
github-actions bot commented Nov 8, 2019
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Could not find a version that satisfies the requirement torch>=1.0.1 (from syft) (from versions: 0.1.2, 0.1.2.p #2574
Comments
colin-byrneireland commented Aug 29, 2019
Describe the bug
A clear and concise description of whI am using a windows machine, with anaconda navigator I installed as per the instructions given in the readme.md
created an enviornment named pysyft and activated it
initialized pip install syft
The error mentioned above is displayed
I am Udacity Student for Secure and Private AI
Current Versions:
Windows 10
Base Env: torch 1.2.0+cpu
torchvision 0.4.0+cpu
Second Env:
torch 1.0.1
Both giving the same dependency error from syft torch 1.1.
Even if I follow https://pytorch.org/get-started/locally/ and install particular versions of torch on windows I still get the same error.
Python 3.7
The text was updated successfully, but these errors were encountered:
MarterLee commented Sep 17, 2019
I meet the same error, I think “torch==1.1” in requirements.txt case this bug, however there is no version 1.1, it mast be 1.1.0 for the mark «==». I change the requirements.txt and install it. it’s running well.
LaRiffle commented Nov 15, 2019
Closing this as we now support torch>=1.3
colin-byrneireland commented Nov 15, 2019
Thanks, much appreciated.
hadisyekta commented May 10, 2022
Hi
I am struggling with torch, cuda and syft!
for using cuda I need torch> 1.11, but syft is noy=t compatible with that!
=2.0.0 in c:\users\hizadi\fl\fl_avg_cae\env\lib\site-packages (from requests->torchvision) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\hizadi\fl\fl_avg_cae\env\lib\site-packages (from requests->torchvision) (2021.10.8)
Installing collected packages: torch
Attempting uninstall: torch
Found existing installation: torch 1.10.0
Uninstalling torch-1.10.0:
Successfully uninstalled torch-1.10.0
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
syft 0.6.0 requires torch =1.8.1, but you have torch 1.11.0+cu113 which is incompatible.
Successfully installed torch-1.11.0+cu113
Problems when installing FARM : ERROR: Could not find a version that satisfies the requirement torch==1.5.* #485
Comments
Coooorinne commented Aug 5, 2020
Hi,
I was working with FARM in Google Colab do create a deep learning model for text classification. I’ve saved the model using the model.save and processor.save and then testet it with loading the model with the Inferencer, which worked all perfectly fine.
Now i was trying to deploy the model and integrate it to a flask script to later load it into a webapp.
I am using pycharm for this but I am having troubles loading and installing FARM. Up to now, I’ve tried all kinds of different versions to install Farm such as
nothing fully worked. Sometimes it seemed to have installed FARM, but when i tried to import farm (or from farm.infer import Inferencer), I kept getting a Win126 error (specific module not found) and after googling I’ came across this issue with updating torch but cudaonly, so I did that but it didn’t solve the problem. I also tried to delete and deinstall everything and start fresh, but I am still getting «module not found» erros or it evens kills installing and I cant even properly install FARM anymore.
So I thought that this might be because of my windows machine or some updates I did, so I tried ubuntu(version 20.04) in my VM, and when trying to install FARM from pycharm in Ubuntu system, its not working either., giving me a «non-zero exit code (137)» error.
I’ve also tried another laptop, started pycharm, created a requirements.txt file and wanted to install farm.
Again, i got the error.
ERROR: Could not find a version that satisfies the requirement torch==1.5.* (from farm) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
Proposed Solution:
Try to run this command from the system terminal. Make sure that you use the correct version of ‘pip’ installed for your Python interpreter located at ‘C:\Users\Coreyn\PycharmProjects\testElea\venv\Scripts\python.exe’.
I tried what is stated in the propsed solution, but got (almost) the same error:
That was my last try and I really don’t know why I can’t be able to install farm properly and import Inferencer, which I need to load my model and deploy it to a webapp. I am new to programming, but I guess it must be some technical issue with the torch==1.5 version, but clueless how to solve, since all my previous approaches have been failing.
So, you guys are my last help! 😀
I am using python3.7, pip 20.2.1 and Windows10, 64bit OR ubuntu20.04 on my VM
Any help appreciated!
The text was updated successfully, but these errors were encountered: