6 ms·
mkvirtualenv <name> --python=pythonx.y --no-site-packages
by smackay 14y ago
mkvirtualenv <name> --python=pythonx.y --no-site-packages
- obviouslygreen 14y agoAs of version 1.7 (2011), --no-site-packages is default behavior. I still specify it every time anyway, but thought it'd be worth mentioning. :) The --python switch is really great, though, particularly now that 3 is getting distro traction and most of us who work in Python are likely maintaining a lot of 2.x projects. Thanks!