I'm having problems running pip3 from virtualenv. If I run 'pip3 install django' in my active virtualenv, it will try to install it in my virtualenv, but fail because need privileges. The problem is, that when I use 'sudo pip3 install django', installs django globally. How can I avoid that?
SOLUTION
I solved it reinstalling virtualenv. Thanks to Klaus D.
ALTERNATIVE SOLUTION
If everything else fail, 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With