Jump to content

Homebrew Python problem on Mac OSX


Recommended Posts

Instead of using Mac OSX's default python I have installed Homebrew and installed python within it. This allows me to isolate different python installations and add/remove modules easily without messing around with the system's python. However, Houdini doesn't like this and it won't launch when Python version 2.7.11 is installed using homebrew. I have tried to export system python path inside Houdini shell so that it is pointed to the system's default python however it still tries to access the homebrew python location and fails to launch Houdini. Does anyone know how to set Houdini's python environment variable correctly so that It searches for the system's default python instead of my custom installation location ?

Thanks in advance

Link to comment
Share on other sites

I found that I had to remove the location of the homebrew Python binary from the $PATH environment variable. This way, Houdini uses the system Python instead of the homebrew version.

In my case, homebrew is installed in /usr/local, so my $PATH variable contains "/usr/local/bin" -- removing this from the value of $PATH allows me to run Houdini again.

You can check if the $PATH variable is set correctly using the "which" command: if "which python" returns the path of your homebrew installation, Houdini will try to use that and it will most likely not work. If, instead, it returns "/usr/bin/python", it should be good (for Houdini, that is).

Link to comment
Share on other sites

I found that I had to remove the location of the homebrew Python binary from the $PATH environment variable. This way, Houdini uses the system Python instead of the homebrew version.

In my case, homebrew is installed in /usr/local, so my $PATH variable contains "/usr/local/bin" -- removing this from the value of $PATH allows me to run Houdini again.

You can check if the $PATH variable is set correctly using the "which" command: if "which python" returns the path of your homebrew installation, Houdini will try to use that and it will most likely not work. If, instead, it returns "/usr/bin/python", it should be good (for Houdini, that is).

 

Thank you for your quick response.

But when you do that, how do you use your homebrew python versions and modules, do they not cause any problems ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...