本文主要是介绍ubuntu12.04-64bit 安装python2.7.6,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
第一步,先安装一些必要的库
sudo apt-get install python-dev
sudo apt-get install libffi-dev
sudo apt-get install libssl-dev
sudo apt-get install libxml2-dev
sudo apt-get install libxslt-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install libsqlite3-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libgdbm-dev
2:下载python2.7.6
$ wget -c https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
$ xz -d Python-2.7.6.tar.xz
$ tar xf Python-2.7.6.tar
$ cd Python-2.7.6
$ ./configure --prefix=/usr/local/bin/python276
$ make
# make install
# python2.7 setup.py install
这篇关于ubuntu12.04-64bit 安装python2.7.6的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!