PyEnv can be installed by downloading from here https://github.com/pyenv/pyenv or if using a mac use brew install pyenv
If downloading from github do the following
git clone https://github.com/pyenv/pyenv.git ~/.pyenv cd ~/.pyenv && src/configure && make -C src If using homebrew this will be installed into your homebrew path.
When running the following code in a mayapy session
import maya.standalone maya.standalone.initialize(name='python') The interpreter never returns for the next line of code.
TL;DR was an issue with my userSetup.py where I use cmds.commandPort I guess before maya is ready. I’m guessing this is actually a bug where standalone python reads this before it is ready.
Why do I need it? Life is too short to tidy up code by hand. Black is an opinionated python formatter. By using it, you agree to cede control over minutiae of hand-formatting.
Why do I need it? numpy is “The fundamental package for scientific computing with Python”. In particular it gives us fast and efficient array types which can be used with C/C++ types as well.