![]() Scripts should still use something like #!/usr/bin/env python3 for cross-compatibility. Python virtual environments also work well. bash_aliases file (the different files, including ~/.bash_profile, are loaded at least once, are mostly for organizational purposes, but may vary by platform). ![]() It is not recommended to change the symbolic link because of other package dependencies, but they "have ongoing project goals to make Python 3 the default, preferred Python version in the distros".įor CLI use, like Rădeanu, I would recommend putting an alias in the user's ~/.bashrc. ![]() ![]() We expect Python 2.7 to remain supported and available in Ubuntu for quite a long time, given that PEP 373 promises upstream bug fix maintenance support until 2020. Python 2 will be removed from the archive. usr/bin/python and /usr/bin/python2 will point to Python 2.7 and /usr/bin/python3 will point to the latest supported Python 3 version. No, this is not going to happen (unless PEP 394 advocates otherwise, which is doubtful for the foreseeable future). The recommended place for information on the transition is official Ubuntu Python page.įor both Ubuntu and Debian, we have ongoing project goals to make Python 3 the default, preferred Python version in the distros.
0 Comments
Leave a Reply. |