From 41fb953fa0b54d0bb3127bb479833efb6281f178 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 15 Feb 2016 19:35:54 +1100 Subject: Docs: update tip on using the systems Python --- doc/python_api/rst/info_tips_and_tricks.rst | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/python_api/rst/info_tips_and_tricks.rst b/doc/python_api/rst/info_tips_and_tricks.rst index 82625268b63..e8928e07671 100644 --- a/doc/python_api/rst/info_tips_and_tricks.rst +++ b/doc/python_api/rst/info_tips_and_tricks.rst @@ -213,12 +213,21 @@ this has the disadvantage that any extensions you have installed in your systems There are 2 ways around this: -- remove Blender Python sub-directory, Blender will then fallback on the systems Python and use that instead +- Remove Blender Python sub-directory, Blender will then fallback on the systems Python and use that instead. + + Depending on your platform, + you may need to explicitly reference the location of your Python installation using the + ``PYTHONPATH`` environment variable, eg: + + .. code-block:: sh + + PYTHONPATH=/usr/lib/python3.5 ./blender + .. warning:: The Python version must match the one that Blender comes with. -- copy the extensions into Blender's Python sub-directory so Blender can access them, +- Copy or link the extensions into Blender's Python sub-directory so Blender can access them, you could also copy the entire Python installation into Blenders sub-directory, replacing the one Blender comes with. This works as long as the Python versions match and the paths are created in the same relative locations. -- cgit v1.2.3