Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python3 vs python
#1
are we ever going to use the name "python" (without the "3") as an alias/equivalent for "python3" in the context of the name of the executable? or will this be left up to the platform builder?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
Maybe it will eventually happen, but will we still be alive when the time comes?

Python (2) will probably remain for some time for reasons of compatibility.
Reply
#3
As example Ubuntu 20.04(21.04 Python 3.9) has Python 3.8.2 as the default version.
Python 2.7 has been moved to universe and is not included by default in any new installs.
So there is no Python 2.7,still have to use python3,i guess they could just change to just python as there is no 2 version anymore.

I usually always use pyenv there then there is only python and pip to version set as global.
There is no python3 or pip3 use with pyenv.
# Set as system wide version
tom@tom:~$ pyenv global 3.9.5

# Test
tom@tom:~$ python -V
Python 3.9.5
Reply
#4
(Jul-28-2021, 01:12 AM)Skaperen Wrote: are we ever going to use the name "python" (without the "3")

Use a modern distribution.

On Arch Linux it's already a standard.
/usr/bin/python points to /usr/bin/python3 which points to the current release.
To use python2, you've to type explicit python2. I have it still installed because of some dependencies.
But there are lesser and lesser packages/modules, which supports Python2.

Or use the suggested pyenv.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#5
In my kubuntu 20.04 I was able to do
Output:
sudo apt install python-is-python3
and it fixed the issue.
Skaperen likes this post
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020