Python: Specify requirements depending on python version using environment markers
You can use the environment markers
to achieve this in requirements.txt
since pip
6.0:
SomeProject==5.4; python_version < '2.7'
SomeProject; sys.platform == 'win32'
See also requirement specifiers .
Via StackOverflow.com.
Leave a comment