installing python modules

   2288   1   0
User Avatar
Member
21 posts
Joined: Sept. 2015
Offline
I'm writing python code and stuck trying to call a python module. I'm on OS X.

From what I've read Houdini uses the systems python - 2.7 in my case.

I wish to call pandas with and “import pandas” command but I'm getting “No module named pandas” error and stumped by this.
Using pip I can easily install pandas to my system python, it imports fine. But it seems Houdini has its own python instance somewhere else. How do I install modules to Houdini's python?
Edited by jonahtobias - Feb. 28, 2020 13:56:10
User Avatar
Member
21 posts
Joined: Sept. 2015
Offline
I've figured it out. In a shell type:
sudo pip install --target=/Applications/Houdini/Houdini18.0.400/Frameworks/Python.framework/Versions/2.7/lib/python2.7 pandas
Every version of Houdini has its own directory so you'll have to change the Houdini18.0.400 above to match your install.
  • Quick Links