• 1. wget https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz

     2. 解压:tar -xvf Python-2.7.11.tgz

     3.cd Python-2.7.11

     4. ./configure

    会在目录下面生成makefile文件,这个makefile主要是为make使用。

     5.make 

    编译源代码,生成执行文件

     6.make install

    把生成的可执行文件,拷贝到系统目录下

  • cd /usr/bin/
    rm -rf python
    ln -s /usr/local/Python-x.x.x/bin/python ./python

相关文章:

  • 2022-03-06
  • 2021-08-22
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-06-12
  • 2022-01-06
猜你喜欢
  • 2021-12-04
  • 2021-06-03
  • 2022-02-07
  • 2021-12-18
  • 2021-08-09
  • 2021-07-04
相关资源
相似解决方案