apsw.Connection 没有属性 enableloadextension

apsw.Connection has no attribute enableloadextension

我已经使用 Homebrew 在 Mac OS X Yosemite 上安装了 Python 2.7.9,我还通过捆绑的 pip 安装了 apsw 3.8.8.2-r1 .

但是,即使找到了 apsw 模块,我似乎也无法 运行 我的应用程序,好像失败了 AttributeError.

AttributeError: type object 'apsw.Connection' has no attribute 'enableloadextension'

我是 OS X 的新手,但不是 Python 开发的新手。我不知道哪里出了问题。

事实证明,您必须从源代码编译 apsw 才能启用多个扩展作为 apsw 站点 states