When I pip install in a proxy environment, I sometimes forget the command and google it, so make a note for myself.
Installation target is hoge, user is username, password is password If the proxy is foo and the port number is 8080
pip install hoge --proxy=http://username:[email protected]:8080
When installing multiple libraries, it is annoying to hit the above "--proxy = ~" every time, so First, type the following command,
set HTTP_PROXY=http://username:[email protected]:8080
set HTTPS_PROXY=http://username:[email protected]:8080
After that, you can usually install the desired library below.
pip install hoge
that's all
Recommended Posts