My work uses a proxy with a .pac configuration file to connect to the internet. This is giving me huge headaches to make things like git work (managed to make it work), now I'm trying to configure Python, I installed it (Windows) and now I'm trying to get some libraries like request or lxml, but pip can't connect to internet
'Connection aborted.', gaierror(11004, 'getaddrinfo failed'))'/simple/lxml/
I know is a proxy problem, I don't think I can make it work, so my question is:
Is there any way of downloading the libraries from a webpage and then install them manually?
I found some of them at https://pypi.python.org but I want to be able to download a library at home, get the files and then install it at work
Install the packages from PyPI as follows:
setup.pypython setup.py install (if not stated otherwise in the installation instructions)Another way is to use the Windows binaries for Python which can be found at ~gohlke. Install the downloaded wheels via pip install some-package.whl.
A solution for your proxy issue could be to look up the IP addresses used by the load-balancer of the proxy (usually listed in the .pac file, try to open it directly in a web browser) and set one of the proxy IPs manually in the Internet Explorer settings and in your pip or Python settings. Usually the company IT rules reset the proxy settings quite often, so you have to do this every time, you hit the proxy error.
Run inetcpl.cpl ,4 to open the Internet Explorer settings directly on the tab you need to set the proxy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With