Subscribe to this thread
Home - General / All posts - IronPython - importing external libraries
julmou29 post(s)
#12-Feb-24 04:42


So, I've been successfully using IronPython with the Standard Python Library, using modules such as json or urllib2. This line of code allows me to import the standard modules:


import sys

sys.path.extend(['C:\\Program Files\\IronPython 2.7\\lib', 'C:\\Program Files\\IronPython 2.7\\lib\\site-packages'])

And then, I can just import the modules, and use them as normal:


import json

import urllib2

Now, it still feels pretty limited in some way.

Is there a way we could also be using some external libraries, such as pandas, requests, or even fiona?

Thanks a lot for your help.

626 post(s)
#12-Feb-24 10:00

I believe we cannot use pandas or fiona with IronPython.

I have IronPython 3.4.1 and I could install requests 2.21.0.

Apparently 2.7 was supported even longer than 3.4 by requests.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.