1.先安装openssl
tar -zxvf openssl-1.0.2l.tar.gz
cd openssl-1.0.2l
./config
make
make install
或
apt-get update
apt-get install libssl-dev
apt-get install libreadline-dev
wget http://download.oracle.com/berkeley-db/db-6.2.32.tar.gz
tar -zxvf db-6.2.32.tar.gz
cd db-6.2.32
cd build_unix/
../dist/configure
make
make install
apt-get install libsqlite3-0
2.下载、解压、配置、安装
缺失库解释:http://www.linuxidc.com/Linux/2016-06/132691.htm
tar –zxvf Python-2.5.2.tar.bz2
cd Python-2.5.2
./configure
make
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _curses _curses_panel
_sqlite3 _tkinter bsddb185
bz2 dbm gdbm
readline sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
make install
2.安装工具包 ez_setup.py下载、解压、安装
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
tar -zxvf distribute-0.6.14.tar.gz
cd distribute-0.6.14
python setup.py install
3.安装pip,下载、解压、安装
tar -zxvf pip-1.3.tar.gz
cd pip-1.3
python setup.py install
4.清除usr/local/lib下.pyc文件
find /usr -name "*.pyc" | xargs rm -rf