2

In R I can use

install.packages("pkgName")

to install a new package no problems. But when I tried python and do pip install package it fails with error

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pyarrow/

I think it's because pip doesn't know how to automatically detect the proxy (that's gets set in Internet Explorer) like R can.

Most of the info I find online either don't work or is just too complicated for someone without specialist knowledge to follow.

conda install fails as well.

Is there an easy fix to this?

1

1 Answer 1

2

Try using the below command on windows command prompt or PowerShell:

pip install --proxy DOMAIN\username:password@proxyserver:port packagename

Replace the DOMAIN, username, password, proxy server and port with values specific to your system. This works for a windows 10 installation authenticated by Active Directory that is behind a corporate proxy server.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.