Windows: Installing python modules

   3864   2   1
User Avatar
Member
12433 posts
Joined: July 2005
Offline
I'd like to install a couple of python libraries under Windows to use with HOM – and I've found very little official documentation on how to do it.

I've successfully installed Python 2.6.4 and numpy and scipy and I've written some test programs using it and it works fine.

Is there some official/best methods for getting Houdini's python to pick up those modules?

The only solutions I've seen are from these pages:
http://gophercg.wordpress.com/2009/12/15/tutorial-install-modules-in-houdini-other-fixes/ [gophercg.wordpress.com]
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&p=47252&sid=51ac731a24cb9154fcd88aeef9ca2a8e [sidefx.com]

Is there an official page somewhere? Should I still go with these path-extending or package-copying methods?

Thanks,
Jason
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
18 posts
Joined: Jan. 2017
Offline
I found a handy guide to use scipy in houdini in windows.

http://wordpress.discretization.de/houdini/home/advanced-2/installing-and-using-scipy-in-houdini/ [wordpress.discretization.de]

Hope it helps future people
User Avatar
Member
402 posts
Joined: June 2014
Offline
I wrestled with this too. I hate the idea of building a tool or module and then having to give a huge list of instructions for getting it working with its dependencies.
I could only get as far as the sys.path.append() thing when I looked at it before… one thought I did just have is using an environmental variable that you can reference in the append method, then you only have to get people to add it in their config. i.e. LOCAL_PYTHON_LIBS=Cblah_etc
Henry Dean
  • Quick Links