Skip to content

Instantly share code, notes, and snippets.

View Rich2020's full-sized avatar

Richard Rich2020

View GitHub Profile
@Rich2020
Rich2020 / Blender as a Module.md
Created September 20, 2022 20:48 — forked from chrdiller/Blender as a Module.md
Installing Blender Python Module on Ubuntu 20.04

Summary: How to install Blender as a python module into your venv:

Prerequisites

  • Install current python3.7 version with pyenv (Ubuntu 20.04 ships with 3.8)
    • Install with fPIC: env PYTHON_CFLAGS=-fPIC pyenv install 3.7.8
  • Install numpy globally for that version with pip

Installation

$ git clone https://git.blender.org/blender.git; cd blender
$ git checkout v2.82a