error: could not create '/usr/local/lib/python2.7/dist-packages/virtualenv_support': Permission denied error: could not create '/usr/local/lib/python2.7/dist-packages/virtualenv_support': Permission denied python python

error: could not create '/usr/local/lib/python2.7/dist-packages/virtualenv_support': Permission denied


I've heard that using sudo with pip is unsafe.

Try adding --user to the end of your command, as mentioned here.

pip install packageName --user

I suspect that installing with this method means the packages are not available to other users.


You don't have permission to the Python folder.

sudo chown -R $USER /usr/local/lib/python2.7


Use

sudo pip install virtualenv

Apparently you will have powers of administrator when adding "sudo" before the line... just don't forget your password.