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

前端 未结 9 1910
予麋鹿
予麋鹿 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:03

    It depends on your default version of python setup. You can query by Python Version:

    python3 --version //to check which version of python3 is installed on your computer
    python2 --version // to check which version of python2 is installed on your computer
    python --version // it shows your default Python installed version.
    

提交回复
热议问题