This article is mainly for people who use Python in-house.
When executing the pip command in an HTTP proxy environment that requires authentication, use the ** "--proxy" ** option and assign the user name and password as shown in the example below.
Command example:
$ pip install —proxy=http://username:[email protected]:port numpy
If the authentication information (user name / password) contains ** "@" , it will work if you enclose the authentication information in ** "" ".
Command example:
$ pip install —proxy=http://"user@name":[email protected]:port numpy
You can now install and update the library even under an HTTP proxy environment.
that's all. If you have any suggestions, please contact us.
Recommended Posts