1

I am in my company office and I am not able to download any package in python till I am in their network. I am using python 3.6 and windows 8 (64 bit). Is there any way to download package by setting or applying some proxy settings.. How to see my network internet proxy settings through internet explorer?

I have checked the setting and its ticked in "Automatic Detect Settings"

I am getting this error:

pip install package_name

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) 
after connection broken by 
'NewConnectionError('<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x0000008C004E0EB8>: Failed to 
establish a new connection: [Errno 11002] getaddrinfo failed',)
': /simple/gensim/
3
  • have you seen this question: stackoverflow.com/questions/11726881/… Commented Jul 6, 2017 at 15:15
  • set http_proxy=proxy.myproxy.com set https_proxy=proxy.myproxy.com . How should I know what to use in both this http_proxy and https_proxy Commented Jul 6, 2017 at 15:20
  • they are likely both the same. Commented Jul 7, 2017 at 11:43

1 Answer 1

0

You should try this it work with most proxies but not all of them

pip install --proxy http://PROXY-ADRESS:PROXY-PORT <PACKAGE>

for example if proxy = 10.10.10.10:80 and you want to donwload flask package your should write :

pip install --proxy http://10.10.10.10:8080 flask
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.