Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install packages/modules in IronPython

I am new to IronPython. Thanks for you help and patience.

I installed IronPython 2.7 from http://ironpython.net/ in Visual Studio 2015. I also installed Python 2.7.6 and anaconda.

I tried the following solution and it didn't work. Installing Python Packages - IronPython

I am wondering can IronPython use the modules installed by anaconda directly?

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?

Thanks.

like image 820
Hikaru Avatar asked Sep 20 '16 13:09

Hikaru


People also ask

How do you install IronPython?

Install IronPython Just download the newest version from http://ironpython.net and follow the instructions from the msi package. This package will setup everything you need to start working with ironpython.

Can IronPython use Python libraries?

IronPython is an open-source implementation of the Python programming language which is tightly integrated with . NET. IronPython can use . NET and Python libraries, and other .


1 Answers

depend on IronPython official website http://ironpython.net/blog/2014/12/07/pip-in-ironpython-275.html

you can follow the following steps

Step1

add path of ironPython installation to system path

Step2

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
like image 147
Eslam Ahmad Avatar answered Sep 18 '22 08:09

Eslam Ahmad