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

前端 未结 9 1878
予麋鹿
予麋鹿 2021-01-31 07:46

I just started setting up a centos server today and noticed that the default version of python on centos is set to 2.6.6. I want to use python 2.7 instead. I googled around and

9条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 08:24

    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
    

提交回复
热议问题