Houman
Houman

Reputation: 66400

How to install Django in virtualenv

I have installed virtualenv and setup my environment like this

sudo pip install virtualenv
sudo mkdir /vc
sudo chown ubuntu:ubuntu /vc
cd /vc/
virtualenv --no-site-packages cb-env
cd cb-env/
source bin/activate

It all works and I see (cb-env)ubuntu@ip: now when I try to install django without sudo it fails:

pip install django

OSError: [Errno 13] Permission denied: '/vc/cb-env/build/django'

What am I missing? Thanks

Upvotes: 1

Views: 1018

Answers (1)

jpic
jpic

Reputation: 33420

Maybe you could re-set ownership, with chown -R (= --recursive): sudo chown -R yourusername /vc

Upvotes: 4

Related Questions