Sunday, December 7, 2014

Pip in IronPython 2.7.5

With IronPython 2.7.5 finally released, one of the most useful features is finally widely available – pip support.

Installing pip is done with a backport of the ensurepip module:

ipy -X:Frames -m ensurepip

Note that –X:Frames is always required when working with pip. If using an installed IronPython that should be run from an Administrator command prompt (or using install -user). Using a regular command prompt will probably result in errors.

To install packages:

ipy -X:Frames -m pip install html5lib

Unfortunately pip does not work, so the longer version has to be used instead.

There is no gaurantee that all libraries will install or run successfully, but many popular ones (like html5lib) do.

No comments:

Post a Comment