Hacker News new | past | comments | ask | show | jobs | submit login

I long for the day when typing "python" into a shell will bring up a python 3 prompt



Switch 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/


Also 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?


My mint 19.2 installation does the same. To run a python 2 script I have to run my conda python 2.7 install now.


Is Manjaro included in that?

Edit: Yes Manjaro has default Python3 too. :)


Windows 10 now offer you to install Python 3 if you do this.


And 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??


Hopefully 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.


Then you can freely make the choice to install one from your package manager. Don't force your cruft on my system though.


the "vast majority"? do you have evidence for that?


As soon as calibre and mercurial finish their ports to python 3, python 2 will vanish from my Arch install. The day approaches!


I ended up just aliasing "python" to Python3 and "python2" to Python2. Hasn't broken much yet in MacOS


It does on a Windows vm if you checked the add to path checkbox.


sudo ln -sf /usr/bin/python3 /usr/bin/python

Or use a Linux distribution like Arch that has python symlinked to python3 by default.


Or maybe just alias it so you don't break anything.


Install pyenv and live your dream.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: