Last active
March 10, 2019 12:14
-
-
Save ezhov-da/97a6fd09acce314513619ba996527d61 to your computer and use it in GitHub Desktop.
pip прокси
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Для запуска pip через прокси, можно воспользоваться 2 вариантами: | |
1. Использовать параметры прокси при каждом вызове: | |
pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org --proxy=http://username:password@proxy-host:proxy-port pyodbc | |
2. Указать все необходимые параметры один раз в конфигурационном файле pip. Для этого: | |
1. Создать в домашней директории пользователя папку pip. | |
2. В ней создать файл pip.ini со следующим содержимым: | |
[global] | |
trusted-host=pypi.org files.pythonhosted.org | |
proxy=http://username:password@proxy-host:proxy-port | |
Вуаля, проверяем работоспособность. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment