查看CentOS编译安装 Python 缺少的模块
yum -y update
yum groupinstall -y ‘development tools’
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar -xzf Python-2.7.9.tgz
cd Python-2.7.9
# 运行配置 configure(–help 参数查看帮助)
./configure –prefix=/usr/local –with-threads –enable-shared
# 编译:
make
# 编译完显示缺少一些模块:
ython build finished, but the necessary bits to build these modules were not found:
_bsddb _curses _curses_panel
_sqlite3 _ssl _tkinter
bsddb185 bz2 dbm
dl gdbm imageop
readline sunaudiodev zlib
To find the necessary bits, look in setup.py in detect_modules() for the module’s name.