WebFaction
Community site: login faq

Hi,

I am trying to install sqlalchemy and getting a permission denied error. Using the command:

pip2.7 install --install-option="--install-scripts=$PWD/bin" --install-option="--install-lib=$PWD/lib/python2.7" sqlalchemy

I get the exception:

Traceback (most recent call last):
  File "/home/myapp/lib/python2.7/pip-1.5.2-py2.7.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/home/myapp/lib/python2.7/pip-1.5.2-py2.7.egg/pip/commands/install.py", line 279, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/home/myapp/lib/python2.7/pip-1.5.2-py2.7.egg/pip/req.py", line 1380, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/home/myapp/lib/python2.7/pip-1.5.2-py2.7.egg/pip/req.py", line 664, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/home/myapp/lib/python2.7/pip-1.5.2-py2.7.egg/pip/req.py", line 894, in move_wheel_files
    pycompile=self.pycompile,
  File "/home/myapp/lib/python2.7/pip-1.5.2-py2.7.egg/pip/wheel.py", line 202, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/home/myapp/lib/python2.7/pip-1.5.2-py2.7.egg/pip/wheel.py", line 189, in clobber
    os.makedirs(destsubdir)
  File "/usr/local/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/SQLAlchemy-0.9.2.dist-info'

It seems like the install options are being ignored. Any suggestions?

Thanks.

asked 17 Feb '14, 21:38

kribri
3114
accept rate: 0%

edited 18 Feb '14, 01:27

seanf
12.2k42136


Solved my problem:

% pip install --user sqlalchemy

permanent link

answered 18 Feb '14, 02:56

kribri
3114
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×54
×6

question asked: 17 Feb '14, 21:38

question was seen: 5,683 times

last updated: 18 Feb '14, 02:56

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM