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
[COMMENT BY ENTHOUGHT SUPPORT: The link in this answer is not valid. See answer below by Jonathan March on August 17, 2018]
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
Download the IronPython-2.7.msi and install it.
Download ironpkg-1.0.0.py from the above link.
ipy ironpkg-1.0.0.py --install
Check whether the install worked using ironpkg -h
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',]
Then run the following to install numpy/scipy ironpkg scipy
Check whether the install worked using ipy -X:Frames -c "import scipy"
Just to confirm @Nilster's second sentence: I just received an email from Enthought support saying the following: [Note: this link is obsolete.]
The IronPython repos are still available, but are no longer maintained. To access them, you must be logged in on Enthought.com. The link to these repos is: http://www.enthought.com/repo/.iron/
After signing up I followed Nilster's instructions and everything worked without a hitch. The only that I'd add is that the .ironpkg config file mentioned in step 4 is a system file according to Windows, so you show system files in Windows folder view options; just showing hidden files won't reveal it
Enthought support here.
The Iron Python numpy and scipy packages can be downloaded here: http://code.enthought.com/.iron/README.txt http://code.enthought.com/.iron/eggs/index.html
FYI, Microsoft stopped work on the IronPython project in 2012 in favor of supporting standard CPython. Those archived versions of numpy and scipy were built in 2011 (so contain no newer features or fixes), and are 32-bit-only. We do not plan to update them in any way.
FYI, we typically recommend that those who wish to use Python in a .net context consider using the actively developed pythonnet package to interface with the living CPython ecosystem.
So instructions at the Enthough link got me all the way to the step 4 (ironpkg scipy) but then I had issue with urllib2 (I don't know what went wrong, it just says "Can't open URL ...")
And while this one is more current post: http://www.grasshopper3d.com/forum/topics/scipy-and-numpy I'm still stuck at: 'NumpyDotNet.NpyCoreApi' threw an exception
so I'm giving up, this has been a rabbit hole. Issue is clearly that IronPython is super old and should be avoided in my opinion.
Updated Instructions July 2019:
I was able to get scipy up and running in IronPython but wasn't able to follow @Nilser's instructions completely. Here are some updated instructions to get it working.
Like others have said, the repo is now at http://code.enthought.com/.iron/eggs/index.html. Don't bother signing up for an Enthoughts account to access the old link, like some of the above comments suggest.
The ironpkg-1.0.0.py file is no longer hosted in Enthought's repo for some reason. I was able to track it down and am hosting it on github so it's easier to find.
ipy ironpkg-1.0.0.py --install
. Check whether the install worked using ironpkg -h
.c:\users\<your user name>\.ironpkg
. Also note that this is a system file, so you have to show system files in order to see it. Open it in a textpad and update the address. Should be: IndexedRepos = [
'http://code.enthought.com/.iron/eggs',
]
ironpkg scipy
to install scipy and its dependencies.ipy -X:Frames -c "import scipy"