I need to run python scripts from my Electron app. I have to set up a python virtual env post installation. Something like the following (but hopefully platform agnostic).
cd /Applications/z.app/Contents/Resources/app.asar.unpacked
brew reinstall python
brew upgrade python
pip3 install --upgrade pip
pip3 install virtualenv
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt