Невозможно использовать easy_install для установки модулей Python

Я пытаюсь использоватьeasy_install установить модуль под названиемЗапросы при выполнении

easy_install requests

Это прекрасно работало неделю назад, когда я использовал Python 2.6.5, но сегодня я установил Python 2.7.2, а затем попыталсяimport requests в одном из моих сценариев, но это не удалось. Затем я попытался переустановить запросы сeasy_install requests но получил эту ошибку

install_dir /usr/local/lib/python2.6/dist-packages/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.6/dist-packages/test-easy-install-15207.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.6/dist-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  http://packages.python.org/distribute/easy_install.html

Please make the appropriate changes for your system and try again.

Поэтому мне сказали переустановить easy_install, и я пошел вhttp://pypi.python.org/pypi/setuptools и узнал, что я должен был

Вначале удалите все файлы setuptools * .egg и setuptools.pth из каталога site-packages вашей системы (и любых других каталогов sys.path).

Я так и сделал. Затем я переустановил setuptools изsetuptools-0.6c11-py2.7.egg, Это казалось успешным, но когда я побежалeasy_install requests Я получил в основном ту же ошибку, за исключением того, что каталог python2.6 / dist-packages теперь является python2.7 / site-packages

siddhion@siddhion-laptop:~$ easy_install requests
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/test-easy-install-16253.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.7/site-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  http://peak.telecommunity.com/EasyInstall.html

Please make the appropriate changes for your system and try again.

Кроме того, когда я делаюeasy_install и нажмите вкладку, я получаю эти варианты

easy_install      easy_install-2.6  easy_install-2.7

Как получилось, что easy_install-2.6?

а также

Как мне снова начать работать с простой установкой?

Ответы на вопрос(6)

Ваш ответ на вопрос