Reputation: 31
The code is :
pip install adict
I get the error raise locationparseerror<url>.failed to parse:<ssfcc.pw>:<10029>
then I configure the network in canopy according to https://support.enthought.com/hc/en-us/articles/204469150-Using-Canopy-Behind-a-Proxy-Firewall
but when test these proxy specs ,raise error:
I restart canopy,run the code'pip install adict',get the error'no matching distribution found for adict'.
I tried a few other packages,raise the same error.
And I tried to reload canopy,it's no use.I'm using windows 7 and canopy 2.1.3.
I think there are some issues in my proxy settings,what should I do to solve the problem?
Upvotes: 2
Views: 3181
Reputation: 71
For installation, pip connects to the network, and if you use a proxy server or firewall, you may need to set the http_proxy and https_proxy environment variables in order to access some url from the command line.
Just set the following two environment variables in your system ( Linux/Windows)
HTTP_PROXY = http://username:password@proxyname:port
HTPS_PROXY = https://username:password@proxyname:port
and make sure there isn't any undesired extra characters in the values of the environment variable otherwise that is also one of the reasons for this 'parsing' error.
Upvotes: 0
Reputation: 31
I delete the environment variables about proxy in my computer.The problem is solved.
Upvotes: 1