facebookresearch / fairseq

Facebook AI Research Sequence-to-Sequence Toolkit written in Python.
MIT License
30.57k stars 6.41k forks source link

Error when installing fairseq #5552

Open ChristopheYe opened 1 month ago

ChristopheYe commented 1 month ago

Hi everyone,

I am running into the following error when trying to install fairseq

pip install fairseq

This is the error in question :

FileNotFoundError: [Errno 2] No such file or directory: 'fairseq/version.txt'

Thanks for your help.

lukatop commented 1 month ago

Same here, I was using python3.9 with pip 24.2 and tried to install fairseq, but getting the same error.

CooperWanng commented 1 month ago

same problem “crtdbg.h”: No such file or directory python 3.10.6 pip 23.2.1 win 11

nnonno commented 1 month ago

pull the repo and install from source. make sure your pip version is lower than 24.1 pip install --force pip==24.0 git clone https://github.com/pytorch/fairseq cd fairseq pip install ./

Myenv: python: 3.10.12 pip 24.0 ubuntu 22.04lts

juzi24707 commented 5 days ago

After uninstalling the hydra-core package, reinstall fairseq, as there is a dependency conflict between these two packages.