How do I get Apache to use the default pyenv Python version instead of the system one?
If the python version you want to use is:

/opt/local/bin/python


just replace the 1st line of the scripts you want to run with this
version of python to say you want to use this interpreter:

#!/opt/local/bin/python