[PYTHON] Use the pip command under an HTTP proxy environment that requires authentication

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://"[email protected]":[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

Use the pip command under an HTTP proxy environment that requires authentication
How to use pip3 under proxy environment Note
Run conda / pip / gem under NTLM authentication proxy environment
Pip install (Windows) under Proxy environment
When pip fails under proxy environment
Execution of pip command under proxy (memorial)
An article that just tries a little HTTP request with the curl command
Use the latest pip in a virtualenv environment
Use AWS SDK for Python (boto) under Proxy environment
Install the pip command
Docker under proxy environment
Ssh to an external server under http proxy [from Ubuntu 18.04]
Created an HTTP proxy that can record and play HTTP responses
A story that stumbled when using pip in a proxy environment
A story that Qiita really wanted to see under a proxy environment
I summarized the sar command that Netflix performance engineers also use