Skip to content

pip list should not perform a self-update check #11677

@kloczek

Description

@kloczek

Description

Running pip in env which is cu off from public network I found that on each execution it tries to check availability of its new version.
It causes long freezing of pip command and atthe end it prints message WARNING: There was an error checking the latest version of pip.

Expected behavior

IMO pip should only do what is specified in commad lie parameters and nothing more.

pip version

22.3.1

Python version

3.8.16

OS

Linux x86/64

How to Reproduce

Run pip list in env which is cut off from access to the public network.

Output

Example:

$ time pip list
Package                       Version
----------------------------- -----------------
alabaster                     0.7.12
appdirs                       1.4.4

[..]

urllib3                       1.26.12
wheel                         0.38.4
zipp                          3.11.0
WARNING: There was an error checking the latest version of pip.

real    2m0.771s
user    0m0.605s
sys     0m0.114s

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: list/show'pip list' or 'pip show'type: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions