【转载】IronPython与科学计算环境配置与安装

原文地址;http://lib.csdn.net/article/python/1569

作者:alaclp

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

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory -
[   ]IronPython-2.7.msi07-Apr-2011 13:099.9M
[   ]IronPython-2.7RC1.msi24-Feb-2011 10:469.9M
[   ]NumPy-and-SciPy-for-DotNet.pdf02-Jun-2011 09:09225K
[DIR]eggs/01-Jun-2011 15:33-
[TXT]ironpkg-1.0.0.py28-Feb-2011 16:3142K


Getting started with SciPy for .NET
1.) IronPython

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"  
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值