Я пытаюсь установить пакеты python на мой компьютер, работающий в Ubuntu 14.04, и я работаю за прокси-сервером. Я потерпел неудачу в моей попытке.
Я пробовал следующее:
sudo -E easy_install elm
Searching for elm Reading https://pypi.python.org/simple/elm/ Download error on https://pypi.python.org/simple/elm/: Tunnel connection failed: 403 Forbidden -- Some packages may not be found! Couldn't find index page for 'elm' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/: Tunnel connection failed: 403 Forbidden -- Some packages may not be found! No local packages or download links found for elm error: Could not find suitable distribution for Requirement.parse('elm')
sudo -E pip install elm
Downloading/unpacking elm Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement elm Cleaning up... No distributions at all found for elm Storing debug log for failure in /home/guru/.pip/pip.log
Я установил следующие переменные среды:
export http_proxy=http://username:password@ProxyServerIP:port
export https_proxy=https://username:password@ProxyServerIP:port
Обратите внимание, что все вышеуказанные ссылки доступны через браузер. Я использовал apt
для установки пакетов, установив мой прокси в /etc/apt/apt.conf
, и он прекрасно работает. Но я не могу понять, что можно сделать для pip
или easy_install
.
Заранее спасибо.