Pylibmc:导入错误:动态模块未定义 init 函数(init_pylibmc)
>>> import pylibmc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylibmc.py", line 55, in <module>
import _pylibmc
ImportError: dynamic module does not define init function (init_pylibmc)
尝试导入 pylibmc,它尝试导入 _pylibmc.so
我正在使用 Mac OSX 10.5.6
>>> import pylibmc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pylibmc.py", line 55, in <module>
import _pylibmc
ImportError: dynamic module does not define init function (init_pylibmc)
Trying to import pylibmc, which tries to import _pylibmc.so
I'm using Mac OSX 10.5.6
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很奇怪。我(pylibmc的开发者)使用Mac OS X 10.6.3开发pylibmc,libmemcached 0.38应该没问题。
尝试下载实际的 tarball 并解压它,然后:
That's very odd. I (the developer of pylibmc) use Mac OS X 10.6.3 to develop pylibmc, and libmemcached 0.38 should be fine.
Try downloading the actual tarball and unpacking it, then: