如何为Ironpython27安装numpy和scipy?旧方法不起作用 [英] How to install numpy and scipy for Ironpython27? Old method doesn't work
问题描述
我认为这是最流行的方法:
I think this is the most popular way to do it before:
https://pytools.codeplex.com/wikipage?title = NumPy%20and%20SciPy%20for%20.Net
但是此链接不再存在:
https://store.enthought.com/repo/.iron/
我最近找到了该指令的克隆,并且还在github上找到了ironpkg-1.0.0.py的克隆.但是 http://www.enthought.com/repo/.iron/egg/index-depend.txt 在互联网上不再存在(我用Google搜索,但是找不到)
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.) IronPython Download and install IronPython 2.7, this will require .NET v4.0.
2.)修改PATH
2.) Modify PATH
在路径上添加安装位置,通常是: C:\ Program File \ IronPython 2.7
Add the install location on the path, this is usually: C:\Program File\IronPython 2.7
但是在64位Windows系统上,它是: C:\ Program File(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
ipy -V PythonContext 2.7.0.40 on .NET 4.0.30319.225
3.)ironpkg
3.) ironpkg
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命令应该可用:
ipy ironpkg-1.0.0.py --install
Now the ironpkg command should be available:
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
ironpkg scipy numpy-2.0.0b2-1.egg
问题
我认为我已经尽力了.任何机构都能成功为Ironpython27安装numpy和scipy吗?
推荐答案
[基于注释的评论:此答案中的链接无效.请参阅乔纳森·玛奇(Jonathan March)在2018年8月17日的回答]
对于那些努力为ironpythopn安装numpy/scipy的用户,他们已经将下载链接移至 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.
最后一步与想法所建议的略有不同.运行ironpkg scipy
无效,因为它会查看要下载的旧网址.而是从上面的链接下载所有鸡蛋和index-depend.txt
.为了使安装正常进行,您必须修改配置文件中的下载位置以指向本地驱动器而不是网站.可以在用户目录(例如C:\Users\Nilster\.ironpkg
)中找到配置文件.在文本板中将其打开,然后将位置更改为您下载鸡蛋的目录,例如,我的样子
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:\Users\Nilster\.ironpkg
. Open it in the textpad and change the location to directory where you downloaded the eggs Eg, mine looks like
IndexedRepos = ['file://C:\ Work \ Python \ Enthought_Eggs']
IndexedRepos = ['file://C:\Work\Python\Enthought_Eggs',]
然后运行以下命令以安装numpy/scipy ironpkg scipy
Then run the following to install numpy/scipy ironpkg scipy
使用ipy -X:Frames -c "import scipy"
这篇关于如何为Ironpython27安装numpy和scipy?旧方法不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!