I am using ubuntu 12.04 and I am trying to pip install virtualenv but suddenly I got this error.
samuel@sampc:~$ pip install virtualenv
Downloading/unpacking
In the case of permission denied error, you just need to go with this command.
sudo pip install virtualenv
sudo before the command will throw away the current user permissions error.
Note: For security risks, You should read piotr comment.
you have to change permission on the mentioned path.
It's because the virtual environment viarable has not been installed.
Try this:
sudo pip install virtualenv
virtualenv --python python3 env
source env/bin/activate
pip install <Package>
or
sudo pip3 install virtualenv
virtualenv --python python3 env
source env/bin/activate
pip3 install <Package>