cache / pip отключен сразу после установки пипа

Я запускаю Ubuntu 15.10. Я установил Pyhon 2.7 через aptitude:

sudo apt-get install python

теперь я пытаюсь установить pip, используя это руководство. Я загрузил get-pip.py, а затем попытался:

sudo python get-pip.py

Установка работала нормально, но я получил эти раздражающие предупреждения:

The directory '/home/administrator/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/administrator/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Итак, я удалил все по следующей команде:

sudo python -m pip uninstall pip setuptools

И я попробовал новую установку без sudo:

python get-pip.py

, но я получил следующую ошибку:

OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pip'

Как можно Я устанавливаю pip (и колеса) надлежащим образом с включенным кэшированием?

1
задан 10 March 2016 в 22:13

0 ответов

Другие вопросы по тегам:

Похожие вопросы: