具有一个已编译的应用程序,该应用程序在多数组尝试导入py31compat时失败。它从源头上运行良好。
我正在使用Anaconda2-4.4.0-Windowsx86_64.exe(Windows 7) 使用numpy-1.12.1(已与pip一起安装)
使用py2exe脚本编译。
它给出的错误是:
Traceback (most recent call last):
File "AutoFastener.py", line 23, in <module>
File "BatchControl\modBatchController.pyo", line 94, in <module>
File "FastenerDataSetUtilities\modFDDUtils.pyo", line 21, in <module>
File "scipy\__init__.pyo", line 61, in <module>
File "numpy\__init__.pyo", line 180, in <module>
File "numpy\add_newdocs.pyo", line 13, in <module>
File "numpy\lib\__init__.pyo", line 8, in <module>
File "numpy\lib\type_check.pyo", line 11, in <module>
File "numpy\core\__init__.pyo", line 23, in <module>
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
cannot import name py31compat
我尝试升级setuptools并通过pip分发,这没有帮助。
我已经查看了可执行文件LIB文件,并且pkg_resources中包含py31compat.pyo,据我所能确定的应该在哪里。
我不知道如何弄清楚multiarray.pyd试图从哪里加载它。