Mac 上的 Python dylib 安装在哪里?
在 Mac OSX 10.6.4 上,您在哪里安装动态库 (dylib),以便 Python 2.6.1 可以导入它们?我尝试将它们放在 /usr/local/lib 和 usr/localbin 和 /Library/Python/2.6/site-packages 中,但这些位置都不起作用。我尝试安装的库是 libevecache.dylib ,它是一个用于访问 Eve-Online 缓存文件的库。
On Mac OSX 10.6.4 where do you install dynamic libraries (dylib) so Python 2.6.1 can import them? I've tried placing them in /usr/local/lib and usr/localbin and /Library/Python/2.6/site-packages but none of these locations have worked. The library I'm trying to install is libevecache.dylib a library to access cache files for Eve-Online.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
$DYLD_LIBRARY_PATH
中的任何位置都应该适用于已编译的库文件;您还可以尝试设置$PYTHONPATH
/sys.path
。Anywhere in your
$DYLD_LIBRARY_PATH
should work for compiled library files; you can also try setting$PYTHONPATH
/sys.path
.运行包含的
setup.py
文件。您永远不应该尝试手动将内容复制到位;这会导致灾难,尤其是在涉及pip
或easy_install
的情况下。Run the included
setup.py
file. You should never try to copy things into place manually; it'll lead to disaster, especially in situations involvingpip
oreasy_install
.