I am trying to write a python script that uses blender, which forces me to use Blender’s python interpreter like this:
blender -P run.py
Now I would like to install scipy for this python interpreter, which would normally be done with pip:
path/to/blender/bin/python -m pip install scipy
, but pip is generally not allowed to install packages in nixos. How would I install python packages for the blender interpreter using a nix configuration file?
Thank you! Can you please elaborate a bit on that? I don’t even know where to put this, as I am very beginner.
I have a similar problem with qmk. I created a flake.nix in the project directory and set up a shell with the python packages in the flake. It works, but I would like to learn another way and find out what’s better and why.