Monday, 15 August 2011

django - pip install dj-database-url gives a Permission Denied Error -



django - pip install dj-database-url gives a Permission Denied Error -

doing "pip install dj-database-url" gave next errors:

downloading/unpacking dj-database-url exception: traceback (most recent phone call last): file "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main self.run(options, args) file "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 223, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) file "/usr/lib/python2.7/dist-packages/pip/req.py", line 942, in prepare_files location = req_to_install.build_location(self.build_dir, not self.is_download) file "/usr/lib/python2.7/dist-packages/pip/req.py", line 144, in build_location _make_build_dir(build_dir) file "/usr/lib/python2.7/dist-packages/pip/req.py", line 1185, in _make_build_dir os.makedirs(build_dir) file "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) oserror: [errno 13] permission denied: '/vagrant/django_projects/microblog/build' storing finish log in /var/lib/postgresql/.pip/pip.log

i don't know i'm doing wrong. please help.

setup virtualenv , start up.

pip install django psycopg2 south dj-database-url

django postgresql

No comments:

Post a Comment