- Notifications
You must be signed in to change notification settings - Fork5.9k
Closed
Description
In the section onrequiring an active virtual environment for pip, a shell functiongpip is suggested for the purpose of installing packages globally (when pip is configured to require a virtual environment):
gpip() { PIP_REQUIRE_VIRTUALENV="" pip"$@"}
However,pip's documentation (as of v21.1.1) contains the following note:
Environment variables set to be empty string will not be treated as false. Please use no, false or 0 instead.
This means that when using pip.conf (or pip.ini on Windows) withrequire-virtualenv = true
, thegpip shell function fails to work as intended. I have tested this behaviour with pip-21.1.1 on Fedora 34.
Metadata
Metadata
Assignees
Labels
No labels