-
Notifications
You must be signed in to change notification settings - Fork 0
Setup bpy on Windows
❗ All these commands need to be run when you are in the working directory of our project!
❗ Run these commands from cmd
and NOT through Powershell.
-
Download
venv-blender-windows.zip
from Dropbox (I precompiled bpy so you don't have to do it) and unzip it into a folder.venv-blender
.
The resulting file tree should look like that:
-
Because Windows acts strange for bpy (source), we can't install only to the virtual environment.
You will need to move the 3.3 folder to your Python install location:- Find the install location of your Python (Usually, this is either
C:\Program Files\Python310
orC:\Users\<Benutzername>\AppData\Local\Programs\Python\Python310
) - Copy the
3.3
folder from the ZIP file into the folder containing your Python executable
- Find the install location of your Python (Usually, this is either
-
Create a python virtual environment and activate it:
python -m venv .venv-blender .venv-blender\Scripts\activate.bat
Your console should now display a prefix like this:
-
Install all necessary libraries by running:
pip install -r requirements.txt
-
You are finished!
Keep in mind, always activate the virtual environment using.venv-blender\Scripts\activate.bat
before running any script, otherwise bpy imports won't work.