0

Downgrade the Python version from Python 3.6.8 to python 2.7.5 default Version

Hello,

When i was insrtalling the NagiosQL,i just have got an error when i researched about that error,have come to know that the python verion shpould be downgraded?how can be done that ?

Thanks

Python Add a comment
jacob
asked Dec 17 2019

Answer

0

Navigate to the location where python bin is available ,/usr/local/bin or /usr/bin/and Check the Version of python where your version is with 3.*

[root@linuxhelp1 bin]# python -V
Python 3.6.8

Now Unlink the python so that python 3 will be removed as the default version

[root@linuxhelp1 ~]# unlink python

Create a soft link with the python 2 Version

[root@linuxhelp1 bin]# ln -s python2 python

Now check the default Version of Python in your machine as follows:

[root@linuxhelp1 bin]# python -V
Python 2.7.5

Hence the result accomplished

Add a comment
linuxhelp
asked Dec 17 2019
edited Dec 18 2019
Post your Answer