linux下安装python3.3.4

时间:2024-07-16 08:08:01

下载安装包

  # wget http://www.python.org/ftp/python/3.3.4/Python-3.3.4.tgz

解压
  # tar -xzvf Python-3.3.4.tgz

为新版本的python创建一个路径

  # mkdir /usr/local/python3

安装

  # cd Python-3.3.4
  # ./configure --prefix=/usr/local/python3

  # make

  # make install

更改老版本python目录

  # mv /usr/bin/python /usr/bin/puthon_old

建立新版本python链接

  # ln -s /usr/local/python3/bin/python3 /usr/bin/python

完成