Archives For November 30, 1999

Python 3.8.4 was released a few days ago as the latest stable release of the Python language. Here’s how to install it in Ubuntu 18.04 and Ubuntu 16.04.

This is the first bugfix release that is considerably smaller than the previous three. There’s almost 20% fewer changes at 162 commits than the average of previous three bugfix releases. Detailed information about all changes made in version 3.8.4 specifically can be found in its change log. Note that compared to 3.8.3, version 3.8.4 also contains the changes introduced in 3.8.4rc1.

The deadsnakes team maintains unofficial Python packages for different Ubuntu releases. Note the PPA does not contain Python 3.8 for Ubuntu 20.04 as upstream ubuntu provides the package.

Install Python 3.8.4 in Ubuntu 18.04, 16.04:

1.) Open terminal either by pressing Ctrl+Alt+T on keyboard, or by searching for ‘terminal’ from system application launcher.

When terminal opens, run command to add the PPA:

sudo add-apt-repository ppa:deadsnakes/ppa

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2.) Then run commands to refresh system package cache, and install Python 3.8:

sudo apt update

sudo apt install python3.8

3.) Once successfully installed, check your system Python versions (python –version):

4.) (Optional) To use Python 3.8 as the default python3, run commands:

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2

For Ubuntu 16.04 replace python3.6 with python3.5. 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 (For Ubuntu 16.04 replace python3.6 with python3.5):

sudo rm /usr/bin/python3; sudo ln -s python3.6 /usr/bin/python3


To uninstall the Python3.8 packages, run command:

sudo apt remove --autoremove python3.8 python3.8-minimal

To remove the Deadsnakes PPA, launch Software & Updates and go to Other Software tab, then remove the repository line and close the window.

PyCharm 2019.2 was released today with exciting new features, initial Python 3.8 support, improved Jupyter Notebook experience, and many more other changes.

PyCharm 2019.2 release highlights:

  • Improved Jupyter Notebook integration. Some of the most requested features have been implemented.
  • Syntax highlight support for many other languages, C#, C++, Groovy, Lua, Makefiles, and more.
  • cURL format is now supported for HTTP requests.
  • Add support for some major Python 3.8 features.
  • Full-text search across multiple data sources
  • Improved debugging and variable refactoring experiences.
  • For more details, see the release note.

How to Install PyCharm 2019.2 in Ubuntu:

Jetbrains offers official Snap package for Linux desktop, which keeps the IDE always up-to-date.

For Ubuntu 18.04 and higher, simply open Ubuntu Software, search for and install pycharm packages:

For Ubuntu 16.04, open terminal (Ctrl+Alt+T) and install snapd daemon via command:

sudo apt install snapd snapd-xdg-open

Then install PyCharm snap package via command:

sudo snap install pycharm-community --classic

In the command replace pycharm-community with pycharm-professional for the professional edition.


To remove the PyCharm snap package, either use Ubuntu Software or run command in terminal:

sudo snap remove pycharm-professional pycharm-community

The second Beta of the latest Python 3.8 was released a few days ago. Here’s how to install it in Ubuntu 18.04, Ubuntu 16.04 via PPA.

Python 3.8 new features so far include:

  • New syntax (the “walrus operator”, :=) to assign values to variables as part of an expression.
  • new syntax (/) to indicate that some function parameters must be specified positionally
  • Parallel filesystem cache for compiled bytecode files
  • Debug build uses the same ABI as release build
  • f-strings now support = for quick and easy debugging
  • new C API to configure the Python Initialization
  • Added the “vectorcall” protocol to the Python/C API.
  • Pickle protocol 5 with out-of-band data buffers

How to Install Python 3.8 in Ubuntu:

The deadsnakes team PPA is maintaining most recent packages for current two Ubuntu 16.04 and Ubuntu 18.04 LTS.

1. Open terminal (Ctrl+Alt+T) and run command to add the PPA:

sudo add-apt-repository ppa:deadsnakes/ppa

Type user password when it prompts and hit Enter to continue.

2. Then check updates and install Python 3.8 via 2 commands:

sudo apt update

sudo apt install python3.8

Once installed, check via command python3.8 --version


You can run command in terminal to purge the PPA which also remove the installed 3.8 packages:

sudo apt install ppa-purge && sudo ppa-purge ppa:deadsnakes/ppa