Why does python easy install give me "permission denied" errors?

Posted by Golden Sinha on Ask Ubuntu See other posts from Ask Ubuntu or by Golden Sinha
Published on 2012-07-08T08:43:06Z Indexed on 2012/07/08 9:22 UTC
Read the original article Hit count: 316

Filed under:
|

When i try to install program in ubuntu 12.04 it shows the error.

program 1 :>>> 
home@home-Compaq-610:~/Desktop$ python setup.py install  
running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.7

copying Calculator.py -> build/lib.linux-i686-2.7

running install_lib

copying build/lib.linux-i686-2.7/Calculator.py -> /usr/local/lib/python2.7/dist-packages

error: /usr/local/lib/python2.7/dist-packages/Calculator.py: Permission denied
.

program 2 :>>>
home@home-Compaq-610:~/Desktop$ sudo chmod +x Moto.bin

[sudo] password for home: 

home@home-Compaq-610:~/Desktop$ 

it shows like this but it do not install the program.

program 3 :>>>
home@home-Compaq-610:~/Desktop$ python setup.py install
[ERROR] wxPython2.8 is required.


how to install wxPython2.8 please tell.

if i try to install this program using easy_install it shows like this.

home@home-Compaq-610:~/Desktop$ easy_install editra
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/dist-packages/test-easy-install-6778.pth'

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

    /usr/local/lib/python2.7/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.

home@home-Compaq-610:~/Desktop$

please help me . please tell how to install programs..

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about permissions