【问题标题】:How to import leveldb in Python 3.5 on Windows如何在 Windows 上的 Python 3.5 中导入 leveldb
【发布时间】:2018-04-04 17:10:44
【问题描述】:

我在 Windows 上的 Python 3.5 中安装 leveldb 包时费了一番功夫。

https://github.com/happynear/py-leveldb-windows 提供了一些关于如何安装软件包的线索。但是,即使按照帖子中的所有说明进行操作,在 Ipython 提示符中导入包 leveldb 时仍然出现以下错误:

import leveldb

  Traceback (most recent call last):

   File "<ipython-input-16-4427bf69c6fb>", line 1, in <module>
   ImportError: DLL load failed: The specified module could not be found.

有人知道如何解决这个问题吗?

【问题讨论】:

  • 请详细说明,提供您所做的,以便其他人可以提供其他解决方案。

标签: windows python-3.x dll package leveldb


【解决方案1】:

https://github.com/happynear/py-leveldb-windows 处的已编译 pyd 文件适用于截至 2019 年 3 月 18 日的 Python 3.6。尝试将其与 Python 3.7 一起使用时,我遇到了与 OP 相同的错误。卸载 3.7 并安装 3.6 使其工作。

【讨论】:

    猜你喜欢
    • 2017-12-14
    • 2016-06-14
    • 2015-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-22
    • 2016-07-25
    • 2016-12-01
    相关资源
    最近更新 更多