Grasshopper

algorithmic modeling for Rhino

I have python xy installed, but Rhino is not able to access its modules. How can install pylab and other libraries/modules such that rhino can access them?

Views: 532

Replies to This Discussion

I assume you only need to add the path to GHPython component. try something like this:

import sys

sys.path.append('pathToWhereLibrariesAre')

import 'yourLibrary'

Adding to what Mostapha said, you can also add module references using the Rhino Python editor. These references will carry over into the Python Grasshopper component. Also, note that not all Python modules are supported by IronPython (which is the Rhino flavour).

In the thread you referenced it looks like someone was able to successfully import numpy, but when i try after adding the site packages folder it give me a message: No module named multiarray

I have not tried this myself, but check out Steve's explanation here. Unfortunately it seems that there is still no 64bit version of Numpy and Scipy yet though..

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service