User:Brita/Configs/Pyenv

=pyenv - managing Python versions and dependencies=

Pyenv is a tool that allows installing and managing several Python versions and environments for different projects with their own set of dependencies. This is useful when having multiple projects using python or to leave the Python system installation unchanged.

Pyenv copies Python versions, flavors and environments into a local folder which then can be selected from a directory using shims.

Read more.

Installing
See https://github.com/yyuu/pyenv-installer

Configuring
Reference: https://github.com/yyuu/pyenv/blob/master/COMMANDS.md

Using Pyenv with Blender

 * Install the Python version that Blender currently requires and setup a virtual environment for it:


 * Install Blender's Python dependencies in the new virtual environment:


 * Set the path for the pyenv python directory before running CMake:

Blender's CMake configuration will fail if it does not find Python 3.7, so setting the path is useful if the OS doesn't have Python3.

This is an example for the final values, notice that the paths refer the venv for the installed packages, otherwise they refer the generic python version: