If you are working on a Computer Vision project in Python that requires 3D scene renderings, then Blender is the way to go. Blender comes bundled with its own Python version, which can be used to write Python scripts for Blender. This is useful for automating rendering jobs, since Python in Blender provides you the bpy module, which gives you access to Blender data, classes, and functions.

Unfortunately, the Python in Blender does not share libraries with your system's Python. But if you don't want to be limited to the Python Standard Library available for Python in Blender, then you can install pip for Python in Blender.

The blender Python binaries are here in the blender directory:


Use this python binary to run the get-pip.py script from the pip documentation to install pip for Python in Blender. Don't forget to point explicitly to the python binary from your blender version. The installation command will look something like this:

/your-blender-path/2.xx/python/bin/python.exe /Downloads/get-pip.py

I ran the installation on Windows, which required me to open a Terminal with admin priviliges to execute the pip.exe. Use this version of pip from Python in Blender (not the pip from your system's Python) to install 3rd party modules for Blender in Python:

/your-blender-path/2.xx/python.exe pip install module

This should allow you to install 3rd party modules for your scripts in Python in Blender.


Read these StackExchange questions for more information on installing pip for Python in Blender. My post is based on their answers: