Issue
I am trying to install packages in a python 3.6.3 virtual environment.
When I do pip install -r package-list.txt
, I see a warning:
Ignoring pip: markers 'python_version < "3"' don't match your environment
In my environment, pip(3) -V
gives:
pip 19.2.3 from /project/*******/compute_cananda_python3_6/lib/python3.6/site-packages/pip (python 3.6)
And Python(3) -V
gives:
Python 3.6.3
Here's my package-list.txt
:
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
_libgcc_mutex==0.1==main
appdirs==1.4.3==pypi_0
asn1crypto==0.24.0==py36_0
beautifulsoup4==4.7.1==py36_1
blas==1.0==mkl
bzip2==1.0.6==h14c3975_5
ca-certificates==2019.6.16==hecc5488_0
...
I expect the packages in package-list.txt
are all installed.
Thanks in advance!
Solution
This is not a warning. This is just an informational message saying that there was a dependency which is not necessary to install because the environment marker for that requirement is not matched by your local environment.
For example, pip won't install requests because I'm still on Python 3:
$ pip install "requests; python_version > '5'"
Ignoring requests: markers 'python_version > "5"' don't match your environment
And it won't install django because I'm not running it on a potato:
$ pip install "django; sys_platform == 'potato'"
Ignoring django: markers 'sys_platform == "potato"' don't match your environment
You may safely ignore this message.
Answered By - wim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.