In this post, I will show you how you can update or install Python 3.8 on Linux. Let us first download the Python 3.8 tar file.
Now do following steps to configure the Python 3.8
tar -xvf Python-3.8.3.tgz cd Python-3.8.3 ./configure --enable-optimizations
At this point, You can run "make altinstall" to make it default version of Python in your system. I don't want to make it default, therefore I am running "make install"
If everything above works fine, You will see Python 3.8 in following directory...
Let us set the alias.
Check the version by running following command.
python3.8 --version > Python 3.8.3
Let us set up the pip now. Pip is also in following directory...
Note: Add the above aliases in your ~/.bashrc or ~/.zshrc, otherwise these aliases wouldn't work next time you open a new term or login in to your system.
Note: When you try to use pip, you might get following warning message...
WARNING: You are using pip version 19.2.3, however version 20.2.1 is available. I would recommend to Update Pip.