Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
pip does not seem to be properly using "python_version" in requirements.txt on Windows #3254
I'm running Windows 7 (64-bit) with pip 7.1.2 and virtualenv 13.1.2 . I would like to use a single requirements.txt file to install the appropriate lxml binary for whichever version of Python I am using in my virtual environments.
Here is a sample requirements.txt file:
However pip does not appear to be examining the environment marker "python_version" before attempting to process the WHL file. Running
and trying it in my 3.4 environment gives:
I can confirm this behavior (on Linux).
This comes from: https://github.com/pypa/pip/blob/e42e822/pip/req/req_install.py#L208-L213 raising in
It might make more sense to wait until someone tries to install the