14
$\begingroup$

The question is where I can reliably find the information on which python version is bundled with a certain Blender release (like 2.72b at the moment)?

I need to find the major and minor version numbers as soon as a new release is out (well, as soon as I begin using it, that is), in order to be able to compile external modules which work only with certain python versions.

$\endgroup$
9
$\begingroup$

This is no different to finding a regular Python installation version:

import sys
print(sys.version_info)
# sys.version_info(major=3, minor=4, micro=2, releaselevel='final', serial=0)

print(sys.version_info.major)
# 3

See also: https://stackoverflow.com/a/17145598/432509

$\endgroup$
14
$\begingroup$

You can see the version also in the Python Console (here: v3.4.1 64bit)

Python Console - Python Version

$\endgroup$
3
$\begingroup$

You can check the python version without opening blender as well. This is just another way of doing it.

  1. In your python root directory go to: 2.72\python\lib\distutils

  2. you will find a file called _init_.py. line 16 states the version numbers.

enter image description here

$\endgroup$
  • $\begingroup$ I know this is an old post but FYI this no longer works as the version isn't hardcoded anymore. Instead you'll find use of sys.version[:sys.version.index(' ')] $\endgroup$ – B Layer Mar 1 at 15:09
2
$\begingroup$

If you want this for previous Blender versions you can also check this at https://svn.blender.org/svnroot/bf-blender/tags/ on a per-Blender-release basis by looking in the "lib/windows/python/lib" directory.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.