The Python programming language 3.9.1 was released a few days ago as the first maintenance release of Python 3.9.
Python 3.9.1 comes with 282 changes since 3.9.0. It is the first version to support macOS 11 Big Sur. With Xcode 11 and later it is now possible to build “Universal 2” binaries which work on Apple Silicon. See the changelog for more.
How to Install Python 3.9.1 in Ubuntu:
1.) Open terminal either by pressing Ctrl+Alt+T on keyboard, or by searching for ‘terminal’ from system application launcher.
Python programming language 3.9.0 was released with new features and optimizations. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, and Ubuntu 20.04 via PPA.
Python 3.9.0 is the first version default to the 64-bit installer on Windows. Windows 7 is unsupported.
Support for the IANA Time Zone Database in the Standard Library
String methods to remove prefixes and suffixes
New PEG parser for CPython
Garbage collection does not block on resurrected objects;
os.pidfd_open added that allows process management without races and signals;
Unicode support updated to version 13.0.0;
when Python is initialized multiple times in the same process, it does not leak memory anymore;
A number of Python built-ins (range, tuple, set, frozenset, list, dict) are now sped up using PEP 590 vectorcall;
A number of Python modules (_abc, audioop, _bz2, _codecs, _contextvars, _crypt, _functools, _json, _locale, operator, resource, time, _weakref) now use multiphase initialization as defined by PEP 489;
A number of standard library modules (audioop, ast, grp, _hashlib, pwd, _posixsubprocess, random, select, struct, termios, zlib) are now using the stable ABI defined by PEP 384.
How to Install Python 3.9.0 in Ubuntu:
1.) Open terminal either by pressing Ctrl+Alt+T on keyboard, or by searching for ‘terminal’ from system application launcher.
For Ubuntu 16.04 and Ubuntu 18.04, replace python3.8 in the code with system’s default python3 version..
And you can then switch between the two Python3 versions via command:
sudo update-alternatives --config python3
NOTE: Due to known bug, terminal won’t open if you changed python3 symlink. An workaround is recreate a symlink via command (Replace python 3.8 with your system default python3 version):