I wont to run blender2.49 and I have compiled and installed python 2.6.6 under /usr/local/bin and when I start blender in console it says

Compiled with Python version 2.6.2.
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

when I run python in console it says python 2.6.6 How can I add python to library path or $pytonhome ?

  • $\begingroup$ Are you on mac or on linux? $\endgroup$
    – clankill3r
    Commented Dec 8, 2019 at 20:00
  • $\begingroup$ Im on ubuntu 18.04 $\endgroup$ Commented Dec 8, 2019 at 20:15
  • $\begingroup$ No need to compile or install, there are ready to use self-contained versions in the release archive download.blender.org/release $\endgroup$
    – Moog
    Commented Dec 8, 2019 at 20:25

1 Answer 1


On OSX, open a terminal session. In your user directory (e.g. mac/users/doeke) make sure you have a file named .bash_profile If it is not there then create one.

Open terminal.

sudo nano .bash_profile


export PYTHONHOME=/usr/local/bin/python_whatever_the_fing_path_is

press ctrl + x to quit and hit y to save the file.

Now log in and out or reboot. Hopefully it is fixed now.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .