擅长:python、mysql、java
<p>在我最近的经验中,这确实是由于一个链接库的架构与模块的库不一样(正如<em>chown</em>所建议的那样)。在</p>
<p>特别是,作为您要导入的python模块的一部分的C编译python库(模块目录中的<code>_mymodule.so</code>文件)调用一个链接的系统库(例如<code>libgfortran.dylib</code>),这两者之间存在架构不匹配的问题。在</p>
<p>如上所述,您可以使用<code>uname -a</code>检查系统的体系结构,并通过<code>file /path/to/lib.dylib</code>命令检查有问题的dylib的架构。在</p>