[英]Problems with dbm module under python 3 using Beaker
Im having trouble using Beaker on windows 7. Im using python 3, and i understand there are problems with the dbm module for python 3 under windows. 我在Windows 7上使用Beaker遇到麻烦。我使用python 3,我知道在Windows下使用python 3的dbm模块存在问题。 The error im getting when i attempt to start my module is:
我尝试启动模块时收到的错误消息是:
ImportError: No module named _dbm
Poking about with the python console, the error arises when i attempt to import ndbm
from the dbm module, Any suggestions as to how i can get around this? 用python控制台
ndbm
,当我尝试从dbm模块导入ndbm
时出现错误,关于如何解决此问题的任何建议?
Im using python 3.2.2 (AMD 64) and windows 7 我正在使用python 3.2.2(AMD 64)和Windows 7
The docs for dbm.ndbm say that it's only available on Unix. dbm.ndbm的文档说,它仅在Unix上可用。 On Windows, your options are
dbm.dumb
or the third-party pybsddb . 在Windows上,您可以选择
dbm.dumb
或第三方pybsddb 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.