Python 3.3 源代码设置:找不到模块:_lzma _sqlite3 _tkinter [英] Python 3.3 source code setup: modules were not found: _lzma _sqlite3 _tkinter
问题描述
我正在尝试按照 python 开发人员指南在 Ubuntu 12.04 上设置 CPython 的编译版本.即使在安装了依赖包 lzma 和 sqlite3 之后,构建也会失败,表明未找到依赖模块.确切错误:
I am trying to set up the compiled version of CPython, on Ubuntu 12.04, by following the python developer guide. Even after installing the dependent packages lzma and sqlite3, build fails indicating that the dependent modules were not found. Exact Error:
*Python 构建完成,但未找到构建这些模块所需的位:_lzma _sqlite3 _tkinter
要找到必要的位,请在detect_modules() 中的setup.py 中查找模块名称.*
*Python build finished, but the necessary bits to build these modules were not found:
_lzma _sqlite3 _tkinter
To find the necessary bits, look in setup.py in detect_modules() for the module's name.*
我找不到包 tkinter.感谢您的帮助.
I could not locate the package tkinter. Appreciate any help.
推荐答案
在我的计算机上安装以下软件包后,我能够在不修改 setup.py
的情况下构建 Python 3.3
Ubuntu 精确框.
I was able to build Python 3.3
without modifying setup.py
after installing the following packages on my Ubuntu Precise box.
build-essential
zlib1g-dev
libbz2-dev
libncurses5-dev
libreadline6-dev
libsqlite3-dev
libssl-dev
libgdbm-dev
liblzma-dev
tk8.5-dev
这篇关于Python 3.3 源代码设置:找不到模块:_lzma _sqlite3 _tkinter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!