Change default Python version from 2.4 to 2.6

前端 未结 6 2001
春和景丽
春和景丽 2020-11-29 23:45

I\'m wanting to use some newer software that requires Python 2.6, and we currently have both 2.4 and 2.6 installed on our dedicated Ce

6条回答
  •  离开以前
    2020-11-30 00:28

    In CentOS

    ln -sf /usr/local/bin/python2.6 /usr/local/bin/python
    ln -sf /usr/local/bin/python2.6 /usr/bin/python
    

    To check version do:

    python -V
    

    Then to fix yum "No module named yum", you should do:

    vi `which yum`
    

    and modify #!/usr/bin/python to #!/usr/bin/python2.4

提交回复
热议问题