如何在IronPython中安装软件包/模块 [英] How to install packages/modules in IronPython
问题描述
我是IronPython的新手.感谢您的帮助和耐心.
I am new to IronPython. Thanks for you help and patience.
我在Visual Studio 2015中从 http://ironpython.net/安装了IronPython 2.7. 我还安装了Python 2.7.6和anaconda.
I installed IronPython 2.7 from http://ironpython.net/ in Visual Studio 2015. I also installed Python 2.7.6 and anaconda.
我尝试了以下解决方案,但没有成功. 安装Python软件包-IronPython
I tried the following solution and it didn't work. Installing Python Packages - IronPython
我想知道IronPython可以直接使用anaconda安装的模块吗?
I am wondering can IronPython use the modules installed by anaconda directly?
我尝试安装的软件包为numpy,scipy,pandas,sklearn.我在2012年看到一份文件指出,IronPython不支持sklearn.还是这样吗?
The packages I tried to install are numpy,scipy,pandas,sklearn. I saw a document in 2012 pointed out that sklearn is not supported in IronPython. Is it still the case?
谢谢.
推荐答案
depend on IronPython official website http://ironpython.net/blog/2014/12/07/pip-in-ironpython-275.html
您可以按照以下步骤
第1步
将ironPython安装路径添加到系统路径
add path of ironPython installation to system path
第二步
以管理员身份运行cmd并键入以下命令
run cmd as administrator and type the following command
ipy -X:Frames -m ensurepip
现在您可以完成所有安装,只需按照以下命令添加任何软件包
now you can install everything is done, you can simply add any package by following command
ipy -X:Frames -m pip install Package
这篇关于如何在IronPython中安装软件包/模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!