4 ms·
I long for the day when typing "python" into a shell will bring up a python 3 prompt
by voldacar 7y ago
I long for the day when typing "python" into a shell will bring up a python 3 prompt
- avian 7y agoSwitch to Arch Linux and live the dream. It has had python3 as /usr/bin/python since 2010. https://www.archlinux.org/news/python-is-now-python-3/ https://www.archlinux.org/news/python-is-now-python-3/
- ImaCake 7y agoMy mint 19.2 installation does the same. To run a python 2 script I have to run my conda python 2.7 install now.
- Lendal 7y agoIs Manjaro included in that? Edit: Yes Manjaro has default Python3 too. :)
- shpx 7y agoAlso Gentoo since mid-2018. Although their package management requires manually specifying the minimum accepted Python version for every single package, so they have thousands of packages that would run just fine on Python 3.7 but no one has the time to manually check and label them as such. So their default is still 3.6 and using 3.7 as your default version is not well supported. I wish someone told me Gentoo is a non-starter before I wasted an afternoon installing it. While we're on the topic, it's pretty stupid how PEP 394, the one that says "python should point to python2.7", gives its reasoning as "because all Linux distros except Arch do it this way" and then all the distros say "python should be python2 because the PEP says so" for the next 9 (maybe more) years. How is anything ever supposed to change?
- sametmax 7y agoWindows 10 now offer you to install Python 3 if you do this.
- alerighi 7y agosudo ln -sf /usr/bin/python3 /usr/bin/python Or use a Linux distribution like Arch that has python symlinked to python3 by default.
- thomasahle 7y agoOr maybe just alias it so you don't break anything.
- voldacar 7y agoAnd I would add - symlinking or shell aliasing does not count! I want a linux system without a single python2 binary anywhere on the disk! How many more decades must we wait??
- JeremyBanks 7y agoHopefully never. If I have a modern C compiler, I can still run most C code from 30 years ago. When I have a Rust 2030 compiler, I'll still be able to run Rust 2015. But with only a Python 3 interpreter, I'm strictly unable to run the vast majority of Python code out there.
- doubleunplussed 7y agoAs soon as calibre and mercurial finish their ports to python 3, python 2 will vanish from my Arch install. The day approaches!
- mixmastamyk 7y agoIt does on a Windows vm if you checked the add to path checkbox.
- kstrauser 7y agoInstall pyenv and live your dream.
- _salmon 7y agoI ended up just aliasing "python" to Python3 and "python2" to Python2. Hasn't broken much yet in MacOS