Não é possível usar o easy_install para instalar os módulos Python

Estou tentando usareasy_install para instalar um módulo chamadosolicitações d fazend

easy_install requests

Isso funcionou bem há uma semana, quando eu estava usando o Python 2.6.5, mas hoje instalei o Python 2.7.2 e tenteiimport requests em um dos meus scripts, mas falhou. Tentei reinstalar solicitações comeasy_install requests mas recebi este erro

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.

Então me disseram para reinstalar o easy_install e fui parahttp: //pypi.python.org/pypi/setuptool e aprendi que tinha que

exclua todos os arquivos setuptools * .egg e setuptools.pth do diretório de pacotes de sites do seu sistema (e quaisquer outros diretórios sys.path) PRIMEIR

Então eu fiz isso. Em seguida, reinstalei o setuptools a partir dosetuptools-0.6c11-py2.7.egg. Pareceu bem sucedido, mas quando corrieasy_install requests Recebi basicamente o mesmo erro, exceto que o diretório python2.6 / dist-packages agora é 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.

Além disso, quando eu façoeasy_install e pressione tab. Recebo essas opções

easy_install      easy_install-2.6  easy_install-2.7

Como é que o easy_install-2.6 existe?

Como faço para que a instalação fácil funcione novamente?

questionAnswers(6)

yourAnswerToTheQuestion