I have a library that has to support several Python versions starting from 2.6. E.g., one of my requirements is requests
. I know that the last version supporting Python 2.6 is 2.19.1
(the latest version 2.20.0
supports any Python >= 2.7).
So my question is whether pip
understands that the line requests~=2.19
in requirements should install 2.19.1
for Python 2.6 and 2.20.0
for any higher version of Python?
Update. The question is not about the syntax, I'm curious whether pip
is smart enough and in a Python 2.6 environment will be able not to go beyond 0.19.1
.