Skip to main content
 首页 » 编程设计

python之使用 pyc 编译 IronPython之没有名为 numpy 的模块

2025年05月04日12TianFang

我有一些 IronPython 代码可以在 Visual Studio 中正常运行。它使用 NumPy 。但是,当我用 pyc 编译它时,它编译成功但是当我运行它时,我得到一个“No module named numpy”错误。

我已经尝试从 IronPython DLL 目录(基本上是所有 numpy 的)复制各种 DLL,但我仍然遇到错误。

我试过谷歌但没有成功,所以非常感谢任何帮助。

我在 Windows 7 上运行 IronPython 2.7.1 版。

请您参考如下方法:

尝试 Enthought 的 NumPy 实现:

http://www.enthought.com/repo/.iron/