4 ms·
As a full time Arch user the change was a little annoying at first but now I am perfectly happy using Python3 as the default because all my Python shell scripts
by rizumu 14y ago
As a full time Arch user the change was a little annoying at first but now I am perfectly happy using Python3 as the default because all my Python shell scripts and system installed packages work under Python3. I can simply work in a Python2 virtualenv when I need python2.
- alexchamberlain 14y agoAgreed, I use virtualenv if I'm hacking up a website at home.
- smackay 14y agomkvirtualenv <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!