trouble with python2.6 setup.py develop

Asked by UPT-BIT LIPI

(mediacore_env)extron@Extron:~/MediaCore-0.9.0$ python2.6 setup.py develop
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-5926.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.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

run it with sudo, should be ok

Revision history for this message
UPT-BIT LIPI (j-admin-mail-bit-lipi-go-id) said :
#2

Thanks for your answer actionparsnip, but I'm very newbie in linux and python. Please can you write it down the code how do I run it with sudo in my case. Thanks a lot.

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

sudo ~/MediaCore-0.9.0/python2.6 setup.py develop

Should be ok

Revision history for this message
UPT-BIT LIPI (j-admin-mail-bit-lipi-go-id) said :
#4

Thanks actionparsnip, that solved my question.