试图在我的 M1 MacBook Air 上运行 IBridgePy

时间:2021-04-14 13:10:27

标签: python apple-m1

我已经使用 home-brew 安装了 python3.9,并按照 IBridgePy 视频的所有说明进行了操作。当我运行 RUN_ME.py 文件时,出现以下错误:

ImportError: dlopen(/Users/redwall/Desktop/IBridgePy_Mac_Python39_64/IBridgePy/IBCpp.so, 2): no suitable image found.  Did find:
    /Users/redwall/Desktop/IBridgePy_Mac_Python39_64/IBridgePy/IBCpp.so: mach-o, but wrong architecture
    /Users/redwall/Desktop/IBridgePy_Mac_Python39_64/IBridgePy/IBCpp.so: mach-o, but wrong architecture

当我运行 file$(which python) 时,我得到以下信息:

/usr/bin/python: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/bin/python (for architecture x86_64):  Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture arm64e):  Mach-O 64-bit executable arm64e

构建是否有任何问题或有关如何解决此导入错误的任何想法?

非常感谢您的帮助!

0 个答案:

没有答案