Setting up my Pythonpath (n00b)

Okay, I’ve just been learning about the Python scripts and how to use them. This post is mostly for me to confirm if I’ve done things correctly, since I’ve never done this before. Thusfar, I’ve downloaded the most current version of Python, and carefully followed the Sticky for setting my path:

I created a new system variable called “PYTHONPATH” to include this variable:

C:\Python24;C:\Python24\DLLs;C:\Python24\lib;C:\Python24\lib\lib-tk

When I load Blender, I recieve the following message:

Using Python version 2.3
‘import site’ failed; use -v for traceback

As far as I can tell, I think I’ve got this right (aside that I’ve got Python 2.4 running), does everything look correct?

Forgive me if this is a silly post, I just hate messing things up. :stuck_out_tongue:

Thanks in advance for any help.

Correct, but is better if you use the version 2.3 of python.

Yep, on the current release of Blender python 2.4 won’t work, at least not properly. Ah, and you shouldn’t really escape those backslashes.
C:\Python24;C:\Python24\DLLs;C:\Python24\lib;C:\Python24\lib\lib-tk
should work just fine.
If you need to have python 2.4 installed you can keep it installed, install 2.3 in its folder and switch between pythonpath values by starting Blender with a small batch file, for example:
blender.bat:

set PYTHONPATH = C:\Python23;C:\Python23\DLLs;C:\Python23\lib;C:\Python23\lib\lib-tk
C:
cd "C:\Program Files\Blender Foundation\Blender\"
blender.exe

Blender started like this will behave slightly differently, as it will output to the console window left open by the batch file instead than to its own console window. It also gives out this warning: “could not determine argv[0] path” but as far as I can tell it works just fine, and i have tested this by importing some modules that are only present in the full python install.

Blender doesn’t use/detect Python 2.4 (yet…).

Download and install 2.3 (you can have both versions at the same time) and make sure the Python path variable points to it.

Thank you all for the tips. I have no other needs for Python besides Blender, so I’ll be ditching this 2.4 for 2.3.