algorithmic modeling for Rhino
Hi all. Is there a way to install additional python library to ghpython? For example I need install requests library:
http://docs.python-requests.org/en/master/user/install/
Tags:
The easiest way that I know of is to download the module and either store it in a directory that the Rhino Python editor is already pointing at or add a new directory that contains that module. See screen shots below.
The GHPython editor points to the same directories, so no extra steps involved with getting the component to recognize modules.
In Rhino: EditPythonScript > Tools > Options > Files
Here's what the Rhino/Plug-ins/IronPython directory looks like.
thanks, but unfortunately this way not work with requests library
Oh, I see. My apologies, I misunderstood your post. No, you cannot install requests. That module is not compatible with IronPython, which is the language that Rhino/GHPython uses.
/SPM
Oh, yeah. That's strange. I tried posting them again, but I keep getting an "undefined" value.
Either way, you have all the information you need via my first comment. So give it a shot and post again if something goes awry.
/SPM
what a depress ! for famos requests module can not work in ironpython
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by