Skip to content

How to configure pip3 to ignore proxy settings or do not use proxy settings? #12479

Closed as not planned
@honey-speaks-tech

Description

@honey-speaks-tech

Description

Here is my query. I am using Python 3.8.10. During my laptop setup long time back, I was using proxy settings to work with pip3. I forgot where I have set this. Recently we moved to no proxy. However I am yet to figure where pip3 is taking proxy details from. Bash environment variables for proxy are unset. When I sudo pip3 --proxy "" install conan==1.60.0, I got Connection timeout error. Error excerpt is pasted under output section. I also tried an option "--no-proxy". But it doesn't work as well. Could someone please help me?

Expected behavior

Pip3 shouldn't work behind proxy.

pip version

pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

Python version

python 3.8.10

OS

Ubuntu 20.04 behind WSL (WSL version: 1.2.5.0)

How to Reproduce

  1. Set proxy settings.
  2. Unset proxy settings from bash environment variable.
  3. Verify no pip.ini or pip.conf files exist.
  4. Try sudo pip3 --proxy "" install <any package> from Bash terminal
  5. Error occurs which prevents package installation.

Output

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f8e3bf4ec40>, 'Connection to xx.xx.xx.xx timed out. (connect timeout=15)')': /simple/conan/

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: proxyDealing with proxies and networkingresolution: duplicateDuplicate of an existing issue/PRtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions