我可以编译 numpy & 吗? scipy 作为 Windows32 上的鸡蛋免费吗?

发布于 2024-07-17 07:11:33 字数 580 浏览 2 评论 0原文

我被要求提供 Numpy & Scipy 作为 python Egg 文件。 不幸的是,Numpy 和 Scipy 并未针对 Win32 平台以 .egg 形式正式发布其产品 - 这意味着如果我想要 Eggs,那么我必须自己编译它们。

目前我的雇主提供了 Visual Studio.Net 2003,它不会编译 1.1.1 之后的 Numpy 版本 - 随后发布的每个版本都无法使用 VS2003 进行编译。

我真正想要的是我可以使用的其他编译器,也许是免费的,但作为免费的限时试用版......我可以用它来编译鸡蛋。 有谁知道另一个编译器,我可以在不支付任何费用的情况下获得和使用,并且肯定会在 Windows 上编译 Numpy?

仅当您知道它会编译 Numpy 时才提出建议 - 不要猜测!谢谢

注意

:我为一个对法律事务非常敏感的组织工作,所以我所做的一切都必须是完全合法。 我必须按照许可条款做所有事情,并将接受审核。

我的环境:

  • Windows 32
  • Standard C Python 2.4.4

I've been asked to provide Numpy & Scipy as python egg files. Unfortunately Numpy and Scipy do not make official releases of their product in .egg form for a Win32 platform - that means if I want eggs then I have to compile them myself.

At the moment my employer provides Visual Studio.Net 2003, which will compile no version of Numpy later than 1.1.1 - every version released subsequently cannot be compiled with VS2003.

What I'd really like is some other compiler I can use, perhaps for free, but at a push as a free time-limited trial... I can use that to compile the eggs. Is anybody aware of another compiler that I can get and use without paying anything and will definitely compile Numpy on Windows?

Please only suggest something if you know for a fact that that it will compile Numpy - no speculation!

Thanks

Notes: I work for an organization which is very sensitive about legal matters, so everything I do has to be totally legit. I've got to do everything according to licensed terms, and will be audited.

My environment:

  • Windows 32
  • Standard C Python 2.4.4

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

风轻花落早 2024-07-24 07:11:33

尝试使用 MinGW32 编译整个 Python 堆栈。 这是一个 GCC-Win32 开发环境,可用于构建Python 和各种软件。 您可能需要用它来编译整个 Python 发行版。 这里是使用 MinGW 编译 Python 的指南。 请注意,您可能还需要提供一个使用 MinGW32 编译的 python 发行版。

如果重新编译 Python 发行版不可行,我相信 Python 2.4 是使用 VS2003 编译的。 您可能不得不将 Scipy 和 Numpy 向后移植到 VS2003 或付费聘请顾问来做这件事。 我会挖掘相关的邮件列表或联系维护人员,并了解执行此操作所需的工作量。

另一种选择是将 Python 版本升级到更新的版本,但您可能必须对应用程序进行回归测试并将 Visual Studio 版本升级到 2005 或 2008。

Try compiling the whole Python stack with MinGW32. This is a GCC-Win32 development environment that can be used to build Python and a wide variety of software. You will probably have to compile the whole Python distribution with it. Here is a guide to compiling Python with MinGW. Note that you will probably have to provide a python distribution that is compiled with MinGW32 as well.

If recompiling the Python distro is not a goer I believe that Python 2.4 is compiled using VS2003. You are probably stuck with back-porting Scipy and Numpy to VS2003 or paying a consultant to do it. I would dig out the relevant mailing lists or contact the maintainers and get some view of the effort that would be required to do it.

Another alternative would be to upgrade the version of Python to a more recent one but you will probably have to regression test your application and upgrade the version of Visual Studio to 2005 or 2008.

£噩梦荏苒 2024-07-24 07:11:33

您可以尝试GCC for Windows。 GCC 是最常用于在 Linux 上编译 Numpy/Scipy(或其他任何东西)的编译器,因此它也应该在 Windows 上运行似乎是合理的。 (不过我自己从来没有尝试过)

当然它是在 GPL 下分发的,所以不应该有任何法律障碍。

You could try GCC for Windows. GCC is the compiler most often used for compiling Numpy/Scipy (or anything else, really) on Linux, so it seems reasonable that it should work on Windows too. (Never tried it myself, though)

And of course it's distributed under the GPL, so there shouldn't be any legal barriers.

沩ん囻菔务 2024-07-24 07:11:33

如果您只需要编译器,它是 .NET 框架的一部分。

例如,您可以在以下位置找到 3.5 框架(使用 Visual Studio 2008):

"C:\Windows\Microsoft.NET\Framework\v3.5"

If you just need the compiler, it is part of the .NET framework.

For instance, you can find the 3.5 framework (Which is used be visual studio 2008) in:

"C:\Windows\Microsoft.NET\Framework\v3.5"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文