Wednesday 15 August 2012

How to tell Python to automatically use the proxy setting in Windows XP like R's internet2 option? -


I am not a super technical person but I know that in Windows if I am installing R by using the Internet 2 option So I can download the package in which I want to.

I install Python and every time I try to download package or install package Easy_install) it fails.

"post-text" itemprop = "text"

I can do Python to automatically detect your proxy settings Am I >

Environment variable http_proxy / from https_proxy to http: // your-proxy-server-address: set proxy-port

The urlopen () function works transparently with a proxy, for which authentication is not required. In the Unix or Windows environment, set the http_proxy or ftp_proxy environment variable to a URL that recognizes the proxy server before starting the Python interpreter. For example ('%' is a command prompt):

 % http_proxy = "http://www.someproxy.com:3128"% export http_proxy% python ...   

The no_proxy environment variable can be used to specify the host that must be transported through a proxy; If set, this hostname should be a comma-separated list of suffixes, optionally: added for port, for example cern.ch, ncsa.uiuc.edu, some.host: 8080 .

No comments:

Post a Comment