Blender
Blender requirements
Blender integration requires to use PySide2 module inside blender. Module is different for Blender versions and platforms so can't be bundled with OpenPype.
How to install
Permissions
This step requires Admin persmission.
- Windows
- Linux
Find python executable inside your Blender installation folder. It is usually located in C:\Program Files\Blender Foundation\Blender {version}\{version}\python\bin\python.exe (This may differ in future blender version).
Open Powershell or Command Prompt as Administrator and run commands below.
Replace C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\bin
with your path.
# Change directory to python executable directory.
> cd C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\bin
# Run pip install command.
> python -m pip install PySide2
Procedure may differ based on Linux distribution and blender distribution. Some Blender distributions are using system Python in that case it is required to install PySide2 using pip to system python (Not tested).
These instructions are for Blender using bundled python.
Find python executable inside your blender application.
Find python executable in Blender
You can launch Blender and in "Scripting" section enter commands to console.
>>> import bpy
>>> print(bpy.app.binary_path_python)
'/path/to/python/executable'
Open terminal and run pip install command below.
Replace /usr/bin/blender/2.83/python/bin/python3.7m
with your path.
> /usr/bin/blender/2.83/python/bin/python3.7m -m pip install PySide2
No module named pip
If you get error No module named pip
you'll have to do few steps first. Open new terminal and run the python executable from Blender (entering full path).
# Run Python executable
> /usr/bin/blender/2.83/python/bin/python3.7m
# Python process should start
>>> import ensurepip
>>> ensurepip.bootstrap()
You can close new terminal. Run pip install command above again. Now should work as expected.