-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Cannot install fairseq==0.10.2 with python 3.9 #3535
Comments
I reproduced the issue on ubuntu 20.04 with python 3.9 The error does not occur with ubuntu 20.04 and python 3.8 so it is probably due to python 3.9. |
Hi @myleott any news on when a new pip version will be released fixing compatibility for python 3.9? |
It's not just a problem with python 3.9. It appears even for 3.8, 3.7, 3.6. |
Facing the same issue with python 3.6 . Any updates on this? @leeway00 @louismartin |
I had a problem while using alpine image in Docker. I solved it by using torch image. |
Ah! I'm unfortunately in a different situation. I'm on conda env. Anyways, thank you for your help. :) |
Having the same issue. Would love to hear if you have any solution for this? @louismartin |
Hi, I have the same issue and would love to hear any solutions! I am using Python 3.8 on Windows. |
Hi, with python=3.9 ,ubuntu=20.04 , the same issue informs and conda also failed to install -c conda-forge or search -c pytorch. % pip install fairseq==0.10.2 During handling of the above exception, another exception occurred: Traceback (most recent call last):
|
has this been solved? |
I tried it with python 3.10.1 and 3.9.9 which yielded the same error as the OP. But going down to python 3.8.12 helped. To be more precise this the dockerfile of the successful install: FROM python:3.8.12-slim-bullseye
RUN apt-get -y update
RUN apt-get -y install build-essential=12.9
RUN pip3 install torch==1.10.1+cpu torchvision==0.11.2+cpu torchaudio==0.10.1+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
RUN pip install -Iv fairseq==0.10.2 |
The same issue is happening in our CI test. https://github.com/espnet/espnet/runs/5011281760?check_suite_focus=true But it's interesting that the issue just come out in a very recent time. It does not have the issue from the point when the issue is raised. |
Did you solved the problem ... I am facing the same problem. I passed 6 hours with this😔 |
I met the same problem on Windows10 python3.9.7. Why this problem has not been tackled yet? |
For conda users, there are a few open PRs aiming at fixing this. In particular this one seems to work. Until they get accepted, a workaround is to use |
For me (on MacOS 10.15, Python 3.9) the issue turned out to be the pip version: using |
|
it does work on fairseq version:1.0.0, the solution is as follow:
reference : https://stackoverflow.com/questions/65445611/cannot-install-fairseq-using-anaconda |
still getting this buggo with python 3.9.9 (pip 22.1) on Void Linux for fairseq versions |
I was facing this issue on Google Colab; not on its default python version, which was 3.7.13 but on version 3.6.9. I had changed the python version via command
Surprisingly error was resolved by updating setuptools via the command |
Python3.9 seems incompatible with fairseq==0.10.2 facebookresearch/fairseq#3535
yes, it also works with python 3.10 on windows11. |
ERROR: Cannot install fairseq2==0.1.0 and fairseq2==0.1.1 because these package versions have conflicting dependencies. |
I encountered the same issue while trying to install fairseq=0.10.2 using pip, and after several attempts that all ended in failure, I finally found a solution that worked for me (on Windows with Python 3.8). Here's how I managed to install fairseq version 0.10.2: 1.You can download either the zip or tar.gz of the specific release directly from the https://github.com/facebookresearch/fairseq/releases/tag/v0.10.2 This method proved successful. Please note that fairseq=0.10.2 requires PyTorch version >= 1.5.0 and Python version >= 3.6. Ensure these requirements are met prior to installation. Hope this helps anyone else facing the same challenge! |
I don't seem to be able to install
fairseq==0.10.2
with python 3.9 on macOS 11.3Seems to be due to this line
The text was updated successfully, but these errors were encountered: