python安装依赖包

每次安装python都费劲,其实装好依赖包就编译安装很流畅了,做个笔记

依赖包对应如下:

模块 依赖 说明
_bsddb bsddb Interface to Berkeley DB library。Berkeley数据库的接口
_curses ncurses Terminal handling for character-cell displays。
_curses_panel ncurses A panel stack extension for curses。
_sqlite3 sqlite DB-API 2.0 interface for SQLite databases。SqlLite,CentOS可以安装sqlite-devel
_ssl openssl-devel.i686 TLS/SSL wrapper for socket objects。
_tkinter N/A a thin object-oriented layer on top of Tcl/Tk。如果不使用桌面程序可以忽略TKinter
bsddb185 old bsddb module 老的bsddb模块,可忽略。
bz2 bzip2-devel.i686 Compression compatible with bzip2。bzip2-devel
dbm bsddb Simple “database” interface。
dl N/A Call C functions in shared objects.Python2.6开始,已经弃用。
gdbm gdbm-devel.i686 GNU’s reinterpretation of dbm
imageop N/A Manipulate raw image data。已经弃用。
readline readline-devel GNU readline interface
sunaudiodev N/A Access to Sun audio hardware。这个是针对Sun平台的,CentOS下可以忽略
zlib Zlib Compression compatible with gzip

依赖包如下:

libbz2-dev
libc6-dev
libffi-dev
libgdbm-dev
libgdbm-compat-dev
liblzma-dev
libncurses5-dev
libncursesw5-dev (optional)
libreadline-gplv2-dev (optional?)
libreadline-dev
libsqlite3-dev
libssl-dev
openssl
sqlite3
tcl-dev (tcl8.6-dev)
tk-dev (tk8.6-dev)
uuid-dev
zlib1g-dev
也可根据make后提示的缺少的进行逐一安装。

参考:https://blog.csdn.net/tanmx219/article/details/86518446

 

你可能感兴趣的:(技术积累)