问题描述
我认为这是以前最流行的方式:
I think this is the most popular way to do it before:
https://pytools.codeplex.com/wikipage?title=NumPy%20and%20SciPy%20for%20.Net
但是这个链接已经不存在了:
But this link is no longer exist:
https://store.enthought.com/repo/.iron/
我最近发现了一个clone的指令,也在github上发现了ironpkg-1.0.0.py的一个clone.但是 http://www.enthought.com/repo/.iron/Eggs/index-depend.txt 不再存在于互联网上(我用谷歌搜索,但没有找到)
I recently found a clone for the instruction, and also found a clone of ironpkg-1.0.0.py on github. But http://www.enthought.com/repo/.iron/eggs/index-depend.txt is no longer exists in the internet(I googled it, but failed to find it)
开始使用 SciPy for .NET
Getting started with SciPy for .NET
1.) IronPython下载并安装 IronPython 2.7,这需要 .NET v4.0.
1.) IronPythonDownload and install IronPython 2.7, this will require .NET v4.0.
2.) 修改路径
在路径上添加安装位置,这通常是:C:程序文件IronPython 2.7
Add the install location on the path, this is usually:C:Program FileIronPython 2.7
但在 64 位 Windows 系统上是:C:程序文件 (x86)IronPython 2.7
But on 64-bit Windows systems it is:C:Program File (x86)IronPython 2.7
作为检查,打开 Windows 命令提示符并转到一个目录(不是上面的目录)并键入:
As a check, open a Windows command prompt and go to a directory (which is not the above) and type:
.NET 4.0.30319.225 上的 ipy -V PythonContext 2.7.0.40
3.) 铁包
Bootstrap ironpkg,它是二进制(基于蛋的)Python 包的包安装管理器.下载 ironpkg-1.0.0.py 并输入:
Bootstrap ironpkg, which is a package install manager for binary (egg based) Python packages. Download ironpkg-1.0.0.py and type:
ipy ironpkg-1.0.0.py --install
现在应该可以使用 ironpkg 命令了:
ironpkg -h(这里显示了一些有用的帮助文本)
ironpkg -h (some useful help text is displayed here)
4.) scipy
现在安装 scipy 很容易:
Installing scipy is now easy:
ironpkg scipy numpy-2.0.0b2-1.egg
问题
我想我已经尽力了.有没有人成功为 Ironpython27 安装 numpy 和 scipy?
推荐答案
[来自 ENTHOUGHT SUPPORT 的评论:此答案中的链接无效.请参阅以下 Jonathan March 于 2018 年 8 月 17 日的回答]
对于那些努力为 Ironpythopn 安装 numpy/scipy 的人,enthought 已将下载链接移至 https://store.enthought.com/repo/.iron/ .该链接仅允许您在注册后进入.
For those struggling to get numpy/scipy install for ironpythopn, enthought have moved the download link to https://store.enthought.com/repo/.iron/ . The link would only allow you in if you are registered.
所以首先你得先免费注册,然后打开上面的链接,然后按照下面的步骤操作
Therefore first up you'd have to register yourself for free, then open the above link, then follow the steps below
下载 IronPython-2.7.msi 并安装它.
Download the IronPython-2.7.msi and install it.
从上面的链接下载 ironpkg-1.0.0.py.
Download ironpkg-1.0.0.py from the above link.
最后一步与 enthoughts 建议的略有不同.运行 ironpkg scipy
将不起作用,因为它会查看旧网址进行下载.而是从上面的链接下载所有的鸡蛋和 index-depend.txt
.为了安装工作,您必须修改配置文件中的下载位置以指向本地驱动器而不是网站.配置文件可以在用户目录中找到,例如 C:UsersNilster.ironpkg
.在 textpad 中打开它并将位置更改为您下载鸡蛋的目录 例如,我的看起来像
The last step is lightly different to the one suggested by enthoughts. Running ironpkg scipy
won't work as it looks at the old web address for download. Instead download all the eggs and index-depend.txt
from the above link. For installation to work, you would have to modify the download location in the config file to point to the local drive instead of website. The config file can be found at user directory eg.C:UsersNilster.ironpkg
. Open it in the textpad and change the location to directory where you downloaded the eggs Eg, mine looks like
IndexedRepos = ['file://C:WorkPythonEnthought_Eggs',]
IndexedRepos = ['file://C:WorkPythonEnthought_Eggs',]
然后运行以下安装numpy/scipy ironpkg scipy
Then run the following to install numpy/scipy ironpkg scipy
使用 ipy -X:Frames -c "import scipy"
这篇关于如何为 Ironpython27 安装 numpy 和 scipy?旧方法不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!