Pipenv: Specify pip version when executing pipenv install --system

Created on 2 Oct 2017  路  4Comments  路  Source: pypa/pipenv

Is it possible to specify which pip version that is used when installing to system? If I have both pip2 and pip3 installed and run pipenv install --system, then everything is installed using pip2 even if Pipfile has

[requires]
python_version = '3.6'

Which is an indicator that pipenv should install packages using pip3

Type

Most helpful comment

Would you accept a pull request where the --two/--three flag decides whether to use pip2 or pip3? Not setting any flag would use pip, and fall back to system default.

All 4 comments

it is not.

If not respecting pipfile's python_version, it should definitely accept --three or --python arguments. Or maybe new --pip argument

Would you accept a pull request where the --two/--three flag decides whether to use pip2 or pip3? Not setting any flag would use pip, and fall back to system default.

I'm having the same issue trying to install pip dependencies while building a Docker image. The workaround was to link /usr/local/bin/pip to pip3:

mv /usr/local/bin/pip /usr/local/bin/pip2
ln -s /usr/local/bin/pip3 /usr/local/bin/pip
Was this page helpful?
0 / 5 - 0 ratings