- Install blender
- Install python version fitting your blender version
- create a new venv with specific version and install the requirements
Note: To Download a graph with osmnx you either need to install osmnx in the venv, which I do not recommend. Or install another python (anaconda) environment with which you first run the download script and then run the blender script as in 7.
py -3.11 -m venv blender-python
source blender-python/bin/activate
pip install pandas- Install https://github.com/nutti/fake-bpy-module into the venv as well. (You can use a secondary venv for vs-code and just install it there)
- Install https://github.com/JacquesLucke/blender_vscode in vscode.
- Scripts that you want to launch in blender need to know about the venv you set up earlier.
import sys
sys.path.insert(0, "C:\\path\\to\\blender-python\\lib\\site-packages\\")- Launch Scripts with VSCode
Ctrl + Shift + PBlender: Start,Ctrl + Shift + PBlender: RunScript