【发布时间】:2013-07-09 00:43:43
【问题描述】:
我从Building Python and more on missing modules找到了答案。
我遇到的问题也是这样。但是我不明白的东西,例如如何安装这些 模块。
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _tkinter bsddb185
dbm gdbm sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
我可以安装这些,但是我有一些无法理解的东西,Ubuntu使用的旧python,是否有新的python找不到的东西,或者其他。如果我结束安装,如何制作系统使用我安装的版本?
sudo ln -s /usr/local/python /usr/bin/python
在我的电脑上,它没有工作。那么我的错在哪里? 如果我安装另一个版本的 Python,在使用之前要选择哪个版本?还有用else soft有问题吗?
【问题讨论】:
-
除非你有构建TKInter GUI代码,否则我不会担心这个。
-
模块列表的其余部分是您的平台不支持或已过时且已弃用的模块。
-
我可以使用 sudo apt-get install python-tk 吗?但是 else 代表什么?
-
python-tk与python软件包一起用于您的 Debian 或 Ubuntu 安装,not 用于您自己的 Python 构建。改为安装tk-dev。 -
其他是
dbm变体。你可能永远不需要这些。有关 Python 支持的概述,请参阅http://docs.python.org/2/library/anydbm.html。sunaudiodev用于 SUN 系统的音频设备。你没有。
标签: python