无法从 Python 3.8.7 导入 libtorrent

问题描述

所以我试图从 python 文件导入 libtorrent 来制作一些下载 torrent 的代码,但是当我导入它时,它返回以下错误

Traceback (most recent call last):
  File "/Users/myUser/Documents/someDirectory/test.py",line 1,in <module>
    import libtorrent
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/libtorrent.so,2): no suitable image found.  Did find:
        /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/libtorrent.so: unkNown file type,first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03
        /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/libtorrent.so: unkNown file type,first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x03

我使用的是 macOS Mojave 10.14.6。谢谢,这会很有帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)