Closed
Description
In the section on requiring an active virtual environment for pip, a shell function gpip 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) with require-virtualenv = true
, the gpip 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