1. numpy和Scipy发行了支持IronPython的版本
在python tools for Visual Studio中可以找到:
http://pytools.codeplex.com/wikipage?title=NumPy%20and%20SciPy%20for%20.Net
numpy、Scipy的下载地址:http://www.enthought.com/repo/.iron/
2. Python Tools for Visual Studio
地址:http://pytools.codeplex.com/
这是由Microsoft's Technical Computing Group提供的python的VS集成工具,同时支持CPython和Ironpython。
附录:A. Numpy/Scipy安装说明:
Index of /repo/.iron
Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
IronPython-2.7.msi | 07-Apr-2011 13:09 | 9.9M | ||
IronPython-2.7RC1.msi | 24-Feb-2011 10:46 | 9.9M | ||
NumPy-and-SciPy-for-DotNet.pdf | 02-Jun-2011 09:09 | 225K | ||
eggs/ | 01-Jun-2011 15:33 | - | ||
ironpkg-1.0.0.py | 28-Feb-2011 16:31 | 42K | ||
Download and install IronPython 2.7, this will require .NET v4.0.
2.) Modify PATH
Add the install location on the path, this is usually:
C:\Program File\IronPython 2.7
But on 64-bit Windows systems it is:
C:\Program File (x86)\IronPython 2.7
As a check, open a Windows command prompt and go to a directory (which is not the above) and type:
> ipy -V PythonContext 2.7.0.40 on .NET 4.0.30319.225
3.) ironpkg
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
Now the ironpkg command should be available:
> ironpkg -h (some useful help text is displayed here)
4.) scipy
Installing scipy is now easy:
> ironpkg scipy numpy-2.0.0b2-1.egg [downloading] 2.25 MB [.............................................................] scipy-1.0.0b2-1.egg [downloading] 7.02 MB [.............................................................] numpy-2.0.0b2-1.egg [installing] 6.22 MB [.............................................................] scipy-1.0.0b2-1.egg [installing] 25.68 MB [.............................................................]
While downloading, the size of the (compressed) egg file is displayed, whereas, when installing, the installed size (the file-size of all installed files) is displayed. Now scipy is installed into the IronPython environment. You can try importing it by typing:
> ipy -X:Frames -c "import scipy"