-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems when installing FARM : ERROR: Could not find a version that satisfies the requirement torch==1.5.* #485
Comments
Seems similar to deepset-ai/haystack#289 |
just did it now. (cloned the git repo, manually changed the req. file, ran the req file and ran --editable .)
|
@tanaysoni could you please have a look since it seems like a highly windows specific issue. Thanks |
Hi @Coooorinne, do you still face the issue? It seems like an issue with the PyTorch installation. Could you test if |
This is because the PyTorch version 1.5.* does not support CUDA. You can try and install a specific version of PyTorch using |
Hi @YojanaGadiya and @tanaysoni , thanks for the help!
And ideas on that? |
@Coooorinne why are you cloning the FARM repo? If you want to use that package, you can simply pip install it google colab. |
@YojanaGadiya I need farm on my local machine not google colab so I am working on pycharm. but when simply install farm via pip install farm, I get the problem with the torch version (see error below). That's why i tried to clone the git repo and remove the wildcard form pytorch in the requirements.txt or do what you suggested with the specific version including CUDA. Like that the installation worked but I cannot import it. |
@Coooorinne This is weird as I am also using Pycharm and I can work with both torch and farm by installing it in my environment using pip. Could you provide details about your device? |
@Coooorinne Maybe you can try upgrading your python from 3.7 --> 3.8. Let me know if it works. |
@YojanaGadiya thanks, i upgraded to 3.8. used the pycharm terminal, installed the specific version of pytorch in my venv and then installed farm in my venv with pip install farm. Installation seemed to have worked but when importing farm in the pycharm python console it throws this error:
I am using windows 10 home OS on my HP Spectre notebook. |
@Coooorinne I used anaconda as my python interpreter. Hence I do not get such an error. I found this link. Hope it helps! |
@YojanaGadiya yes!! Now it works, thanks a lot!! |
@Coooorinne Can u tell how you resolve this issue? |
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'.
Command Output:
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! :D
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: