-
Notifications
You must be signed in to change notification settings - Fork 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
ERROR: Invalid requirement: 'transformers[sentencepiece,torch]<4.26>=4.23.0': Expected end or semicolon (after version specifier) #12792
Comments
You are missing a comma. The correct format is
|
Yes, I know, the problem here is that format was previously supported, and I cannot find any doc explicitly saying "this is deprecated and should be replaced by something else". All I found is PEP440 syntax doesn't include this. |
I beleive the error message comes from packaging , while it isn't exactly identifying what you are missing, it is pointing to where the error is:
I'm not an expert on how pip and packaging interact, but for improvements to the error message I beleive you will need to raise an issue over there. |
Description
Pip 24.1 rejects the multi-constraint version.
I don't know if this is the issue with PEP440 enforcement, but the error msg is certainly misleading.
pip version
24.1
Python version
3.10
OS
Ubuntu 22.04
How to Reproduce
Have
transformers[sentencepiece,torch]<4.26>=4.23.0
inrequirements.txt
andpython3 -m pip install -Ur requirements.txt
.The text was updated successfully, but these errors were encountered: