packaging
packaging copied to clipboard
ERROR: Invalid requirement: 'transformers[sentencepiece,torch]<4.26>=4.23.0': Expected end or semicolon (after version specifier)
Context
This was initially filed to pip side for 24.1 and PEP440, and they mentioned it may be a packaging issue:
- https://github.com/pypa/pip/issues/12792
According to this issue it may be related to PEP508 as well?
- https://github.com/pypa/packaging/issues/803
Description
We found with pip 24.1 it rejects the multi-constraint version that was working a few days ago. I don't know if this is the issue with PEP440 enforcement, but the error msg is certainly misleading.
Repro
Have transformers[sentencepiece,torch]<4.26>=4.23.0
in requirements.txt
and python3 -m pip install -Ur requirements.txt
.