Blender Python for Beginners / Chapter 1 — Getting started (lessons 1–2) / Lesson 1
Driving Blender from Python
Time needed: about 3 min (estimate)
Reading settings
These settings are remembered on this device only.
You can try the opening of this lesson without an account.
bpy is not something you pip install
This is the commonest misunderstanding at the door to Blender Python.
The bpy in import bpy is a module Blender provides at start-up, not something you install with pip.
There is a package of the same name on PyPI, but it is a different thing for "using Blender as a Python library", and this series does not use it.
In other words, the shape of the work is running Python inside Blender.
Running headlessly
Add --background (or -b) and no window opens.
The scene is still loaded and you can work with its contents.
You can save files and render, so it runs on a server or in CI.
The real path on macOS is long, so give it an alias.
Create a free account to keep reading
With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.
Report a problem with this lesson
Log in to send a report.