Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Suggested function for installing packages globally does not work as intended #1099

Closed
@trk9001

Description

@trk9001

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp