I am trying to learn Blender to make math animations, and since I expect to use it almost exclusively through the Python api, I am writing a library of utilities as I go: https://github.com/bencbartlett/pyblend I would like to be able to import this library within Blender. I have run the following to install it:
git clone https://github.com/bencbartlett/pyblend.git
/Applications/Blender.app/Contents/Resources/2.93/python/bin/python3.9 -m pip install -e pyblend
If I then run /Applications/Blender.app/Contents/Resources/2.93/python/bin/python3.9 and import pyblend, it imports as expected, but when I open Blender and run import pyblend in the console, I get a ModuleNotFoundError. Strangely, the dependencies for the module which were not previously present (such as matplotlib) are correctly installed, but the module itself is not.
What am I doing wrong and how can I install a local module so that it is importable within Blender?