首页 > 代码库 > Upgrade Python in Ubuntu

Upgrade Python in Ubuntu

  • 下载安装包.tgz
  • tar -zxvf Python
  • cd P..
  • ./configure
  • make
  • sudo make install
  • 通过 /usr/local/bin/python -V 查看版本号

以下代码有问题:

  • sudo rm /usr/bin/python
  • sudo ln -s /usr/include/python2.7 /usr/bin/python

改为:

  • sudo ln -s /usr/local/bin/python /usr/bin/python

Upgrade Python in Ubuntu