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

 

 

你可能感兴趣的:(rk3288)