The Python programming language 3.10 is now in release candidate phase. For testing purpose you can install the RC release via PPA in Ubuntu 20.04, Ubuntu 18.04, Linux Mint 19.x/20, and derivatives.
This is the penultimate release preview contains only reviewed code changes. Until Python 3.10.0 final to be released on 2021-10-04, they will be second candidate if necessary which is planned for 2021-09-06.
New major features and changes compare to Python 3.9:
- Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.
- Allow writing union types as X | Y
- Parameter Specification Variables
- Precise line numbers for debugging and other tools.
- Add Optional Length-Checking To zip.
- Parenthesized context managers are now officially allowed.
- Deprecate distutils module.
- Explicit Type Aliases
- Structural Pattern Matching: Specification
- Structural Pattern Matching: Motivation and Rationale
- Structural Pattern Matching: Tutorial
- Require OpenSSL 1.1.1 or newer
- Remove Py_UNICODE encoder APIs
- Add optional EncodingWarning
Install Python 3.10 RC1 via PPA:
So far, it’s Python 3.10 RC1, which is available to install via this Ubuntu PPA. NOTE for Ubuntu 16.04, the package stuck at Python 3.10 alpha 6 due to old SSL library.
1.) Open terminal from system application menu, and run command to add the PPA:
sudo add-apt-repository ppa:deadsnakes/ppa
Type user password (no asterisk feedback) for sudo prompts and hit Enter to continue.
2.) Then refresh system package via command:
sudo apt update
3.) Finally install Python 3.10 via command:
sudo apt install python3.10
Once installed, check via
python3.10 --version command or just run
python3.10 to access the IDE in terminal.
Uninstall Python 3.10:
To remove the programming language, run command:
sudo apt remove --autoremove python3.10
And remove the Ubuntu PPA via Software & Updates utility under Other Software tab.