ubuntu12.04编译安装python3.4

一.下载python3.4.1 at

https://www.python.org/downloads/release/python-341/

二.彻底删除之前的python3以及pyvenv,pip,setuptools等

sudo rm -rf /usr/bin python3* pip* pyvenv* pydoc3*
sudo rm -rf /usr/lib python3* pip* pyvenv* pydoc3*
sudo rm -rf /usr/local/bin python3* pip* pyvenv*
sudo rm -rf /usr/local/lib python3*

 

三.解压

tar -zxvf Python.tgz
cd Python
./configure
make
sudo make install

会自动安装setuptools,pyvenv

你可能感兴趣的:(ubuntu12.04编译安装python3.4)