S
S
sazhyk2016-02-10 13:28:47
Python
sazhyk, 2016-02-10 13:28:47

How to configure pip to work through a proxy?

How to set up pip so that you don't have to specify packages every time when installing packages

pip install --proxy http://user:[email protected]:port package_name

Maybe somewhere in his configuration files this can be specified, like with wget in the wgetrc file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Myvrenik, 2016-02-10
@sazhyk

See https://pip.pypa.io/en/latest/user_guide/#config-file

[global]
proxy = http://user:[email protected]:port

Or https://pip.pypa.io/en/latest/user_guide/#environm...
export PIP_PROXY="http://user:[email protected]:port"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question