If you want to play with Blender scripting but the Python packages it ships with aren't enough, you can replace its built-in Python with your own. Here I give you some instructions to swap in a miniconda-managed environment.
These instructions apply for macOS. YMMV.
# If you don't like Homebrew you can just get it from https://www.blender.org/download/