Virtualenv does not detect pip3
I am having problems running pip3 from virtualenv. If I run 'pip3 install django' on my active virtualenv, it tries to install it on my virtualenv, but it doesn't work because you need privileges. The problem is that when I use 'sudo pip3 install django' django is installed globally. How can I avoid this?
+3
source to share
1 answer
Decision
I decided to reinstall virtualenv. Thanks to Klaus D.
ALTERNATIVE SOLUTION
If all else fails, you can still use pip explicitly:
myvirtualenv/bin/pip3 install django==1.7.1
and when you create your virtualenv do it without sudo like:
virtualenv myvirtualenv --no-site-packages
Thanks to cesarkawakami from #python freenode irc.
+1
source to share