Grasshopper

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/

Views: 1183

Replies to This Discussion

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.

Hope this helps,
/SPM

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

Can't see the picture

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 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service