pip installing to system packages

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pip installing to system packages

Sontek
I activate my virtualenv, then try to use pip and it tries to install to the system packages:

[koru-sontek.rhcloud.com ~]\> source ~/koru/virtenv/bin/activate
(virtenv)[koru-sontek.rhcloud.com ~]\> which pip
/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/bin/pip
(virtenv)[koru-sontek.rhcloud.com ~]\> which python
/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/bin/python
(virtenv)[koru-sontek.rhcloud.com ~]\> pip install sqlalchemy
Downloading/unpacking sqlalchemy
  Running setup.py egg_info for package sqlalchemy
    warning: no files found matching '*.jpg' under directory 'doc'
    no previously-included directories found matching 'doc/build/output'
Installing collected packages: sqlalchemy
  Running setup.py install for sqlalchemy
    error: could not create '/usr/lib64/python2.6/site-packages/sqlalchemy': Permission denied
    Complete output from command /usr/bin/python2.6 -c "import setuptools;__file__='/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/build/sqlalchemy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-xro6j5-record/install-record.txt --install-headers /var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/include/site/python2.6:
    running install

running build

running build_py

running build_ext

running install_lib

creating /usr/lib64/python2.6/site-packages/sqlalchemy

error: could not create '/usr/lib64/python2.6/site-packages/sqlalchemy': Permission denied

----------------------------------------
Command /usr/bin/python2.6 -c "import setuptools;__file__='/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/build/sqlalchemy/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-xro6j5-record/install-record.txt --install-headers /var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/include/site/python2.6 failed with error code 1
Storing complete log in /var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/.pip/pip.log
Traceback (most recent call last):
  File "/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/bin/pip", line 9, in <module>
    load_entry_point('pip==1.0.2', 'console_scripts', 'pip')()
  File "/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/__init__.py", line 116, in main
    return command.main(initial_args, args[1:], options)
  File "/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 151, in main
    log_fp = open_logfile(log_fn, 'w')
  File "/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/koru/virtenv/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 177, in open_logfile
    os.makedirs(dirname)
  File "/usr/lib64/python2.6/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/lib/stickshift/47718763f63148a089bdb31e7ad72d5a/.pip'


_______________________________________________
Distutils-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/distutils-sig