algorithmic modeling for Rhino
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..
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by