-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Fairseq reinstalls pytorch #4634
Comments
I have just encoutered this as well. I managed to get this working by commenting out the |
This isn't a fairseq issue. This is regular pip behaviour see https://stackoverflow.com/questions/2861183/upgrade-package-without-upgrading-dependencies-using-pip |
No, it's not "regular pip behavior". The StackOverflow question you pointed us to is for upgrading packages which may require an upgrade of its dependencies. We're installing an editable version which should obey our currently installed dependencies. This is especially problematic since the version of pytorch isn't pinned (and therefore installing fairseq shouldn't do something dumb like installing pytorch built against a different version of CUDA...). In short, it's definitively a bug. From the pypa documentation here (emphasis mine):
|
Thanks for your tip. |
I think in another issue #4733 , this problem is fully discussed. For my case, adding |
Why did I add this option and it still doesn't work? My order is |
Thank you very much, I tried your suggestion and it worked. |
I have a source-compiled version of pytorch (
1.12.0a0+git67ece03
).When I tried to install fairseq, it uninstall the installed pytorch and install another version (
1.12.1+cu102
).Does anyone know how to resolve the issue?
Here is the log of
pip install -e .
of Fairseq:The text was updated successfully, but these errors were encountered: