Here I have no python3 installed
The most simplest way to install python3
=================
sudo yum install python3
Make python 3.6 as default one
=================
sudo alternatives --install /usr/bin/python python /usr/bin/python3.6 60
sudo alternatives --config python
Check the python version
==================
Check the pip version
==================
Check the pip3 version
==================
Upgrade pip3
=================
pip3 install --upgrade pip --user
Check the pip version
==================
Bonus: Fixing yum package manager
Now lets try to install a random package to check the yum package manager
Install nano
=============
sudo yum install nano
you will get following error
To fix this, Open the /usr/bin/yum file and in the first line, change python to python2
OLD:
NEW:
If again you got similar issue with different file, for example:
Open this file (sudo vi /usr/libexec/urlgrabber-ext-down ) and in the first line change "python" to "python2"
Here is the Youtube demo:
-That's all for now