close

How to check all versions of python installed on osx and centos

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to check all versions of python installed on osx and centos in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to check all versions of python installed on osx and centos?

  1. How to check all versions of python installed on osx and centos?

    we can directly use this to see all the pythons installed both by current user and the root by the following: whereis python

  2. check all versions of python installed on osx and centos

    we can directly use this to see all the pythons installed both by current user and the root by the following: whereis python

Method 1

The more easy way its by executing the next command:

ls -ls /usr/bin/python*

Output look like this:

/usr/bin/python           /usr/bin/python2.7        /usr/bin/pythonw
/usr/bin/python-config    /usr/bin/python2.7-config /usr/bin/pythonw2.7

Method 2

we can directly use this to see all the pythons installed both by current user and the root by the following: whereis python

Conclusion

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read