pandas 如何在 IronPython 中安装包/模块
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39595327/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install packages/modules in IronPython
提问by Hikaru
I am new to IronPython. Thanks for you help and patience.
我是 IronPython 的新手。感谢您的帮助和耐心。
I installed IronPython 2.7 from http://ironpython.net/in Visual Studio 2015. I also installed Python 2.7.6 and anaconda.
我在 Visual Studio 2015 中从http://ironpython.net/安装了 IronPython 2.7 。我还安装了 Python 2.7.6 和 anaconda。
I tried the following solution and it didn't work. Installing Python Packages - IronPython
我尝试了以下解决方案,但没有奏效。 安装 Python 包 - IronPython
I am wondering can IronPython use the modules installed by anaconda directly?
我想知道 IronPython 可以直接使用 anaconda 安装的模块吗?
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?
我尝试安装的软件包是 numpy、scipy、pandas、sklearn。我在2012年看到一个文档指出IronPython不支持sklearn。还是这样吗?
Thanks.
谢谢。
回答by Eslam Ahmad
depend on IronPython official website http://ironpython.net/blog/2014/12/07/pip-in-ironpython-275.html
依赖 IronPython 官网http://ironpython.net/blog/2014/12/07/pip-in-ironpython-275.html
you can follow the following steps
您可以按照以下步骤操作
Step1
第1步
add path of ironPython installation to system path
将ironPython安装路径添加到系统路径
Step2
第2步
run cmd as administrator and type the following command
以管理员身份运行cmd并输入以下命令
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