1
$\begingroup$

I use Blender 2.79 downloaded from original site: "https://www.blender.org/download/". If I install Blender from the system repository (my system is Void Linux), I don't see the Nvidia graphics card. The version of Python distributed inside the downloaded archive is 3.5.3. The Python version installed in my system is 3.6.4, where I installed all the modules I use.

How do I use Blender 2.79 with the Python system (v. 3.6.4)? Thank you.

Translated with www.DeepL.com/Translator

$\endgroup$
2
  • 2
    $\begingroup$ What does the Nvidia graphics card have to do with your question? $\endgroup$
    – Pascal
    Commented Jan 15, 2018 at 18:21
  • $\begingroup$ Ripeto: If I install Blender from the system repository (my system is Void Linux), I don't see the Nvidia graphics card. And Blender from repo have Pyton V. 3.5.3. My system Python where I installed all the modules I use is 3.6.4. $\endgroup$
    – Ave
    Commented Jan 17, 2018 at 11:22

2 Answers 2

1
$\begingroup$

Blender comes bundled with it's own Python. It doesn't have anything to do with your system Python and you shouldn't try to mix the two, this will only give you headaches. Stay with whatever Python version Blender provides for your Blender scripting.

If you need additional libraries for Blender's python, you can install them in Blender's Python directory (in the directory you installed Blender in, navigate to blenderversion/python/lib to find the standard python library path), or install the libaries somewhere else and adjust sys.path in your python scripts before you import them.

There are reasons why Blender does not use the System Python installation. The first one is that no Python might be installed, but much more importantly, Blender's python API is developed against a specific Python version - the one bundled with Blender - and Blender can't guarantee that it will work with any other version of Python. If you try to trick Blender into using your System Python, you might encounter strange bugs nobody else has seen. This way lies madness.

Note that even pure Python projects often use virtual environments to isolate themselves from the System Python installation and provide a known environment.

$\endgroup$
1
  • $\begingroup$ Grazie :( ----------------------------------------------------------------------- $\endgroup$
    – Ave
    Commented Jan 17, 2018 at 11:18
0
$\begingroup$

Blender 2.79 release is officially on python 3.5. You need the specific version shipped with Blender. As Pascal pointed out, it doesn't work if you change it. I just tried and it crashed. Anyway, latest buildbot uses blender 3.6.2. If you are able to build from source, you could use that. Consider some addons won't work. Everything is guaranteed to work only against the release version. Hope it helps.

$\endgroup$

You must log in to answer this question.

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