Python Forum
Problem Getting Pip To Work Behind Linux Proxy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem Getting Pip To Work Behind Linux Proxy
#1
Hello,

I am just wondering if someone can help me get pip to work behind network proxy on Linux. If I configure Linux environmental variables I can get apt-get update to work.

Quote:export http_proxy='http://USER:PASSWORD@PROXY_SERVER:PORT'

It might be worth pointing out the password is using special characters.

I have also tried setting the proxy information within a pip.conf file and supplying it as command like arguments to pip but nothing works.

My primary error message is:
Quote:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7ff0b536dd60>: Failed to establish a new connection: [Errno -2] Name or service not known'))':

I am not understanding why this does not work but apt-get does work. I have a feeling this problem maybe tied to urllib3 but at this point I have found no good information on this. The only information I have found is different ways of supplying the configuration to pip but I am starting to think this maybe related more to python.

Any help, comments, or advise for maybe a workaround would be greatly appreciated.

Thanks,
joe
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Script stop work after 3 actioins - PLEASE WHERE IS THE PROBLEM? rondon442 0 1,567 Sep-27-2021, 05:40 PM
Last Post: rondon442
  why does my python request cannot work with proxy and cannot get captured by fiddler szhangpy 0 2,017 Jun-27-2019, 10:48 PM
Last Post: szhangpy
  Why doesn't my loop work correctly? (problem with a break statement) steckinreinhart619 2 3,224 Jun-11-2019, 10:02 AM
Last Post: steckinreinhart619
  Python files made on linux don't work on windows sylas 2 3,267 Oct-10-2018, 05:34 AM
Last Post: sylas
  Problem to use pip behind cntlm / corporate proxy markus7811 3 22,218 May-02-2018, 02:21 PM
Last Post: ljmetzger

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020