Skip to content

Instantly share code, notes, and snippets.

@akelch
Last active November 22, 2023 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akelch/57f7d34401fcf476738359ef42043f83 to your computer and use it in GitHub Desktop.
Save akelch/57f7d34401fcf476738359ef42043f83 to your computer and use it in GitHub Desktop.
-----------------------------------------------------------------------------------------------------------------
brew
-----------------------------------------------------------------------------------------------------------------
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Follow the next Steps shown in the Terminal
-----------------------------------------------------------------------------------------------------------------
pipenv
-----------------------------------------------------------------------------------------------------------------
cd ~
echo 'export PATH=$HOME/Library/Python/3.9/bin:$PATH' >> .zshrc
pip3 install pipenv
-----------------------------------------------------------------------------------------------------------------
pyenv
-----------------------------------------------------------------------------------------------------------------
brew install pyenv
echo 'eval "$(pyenv init --path)"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
-----------------------------------------------------------------------------------------------------------------
gcloud
-----------------------------------------------------------------------------------------------------------------
Download, install & extract matching version from: https://cloud.google.com/sdk/docs/install#mac
~/Downloads/google-cloud-sdk/install.sh
gcloud components install app-engine-python
gcloud components install app-engine-python-extras
gcloud init
-----------------------------------------------------------------------------------------------------------------
node + npm
-----------------------------------------------------------------------------------------------------------------
Download and install matching version from: https://nodejs.org/en/download/
-----------------------------------------------------------------------------------------------------------------
enforce building grpcio
-----------------------------------------------------------------------------------------------------------------
echo 'export PIP_NO_BINARY=grpcio' >> ~/.zshrc
-----------------------------------------------------------------------------------------------------------------
clear pipenv cache
-----------------------------------------------------------------------------------------------------------------
pipenv --clear
@KadirBalku
Copy link

@XeoN-GHMB after executing 'gcloud init' you have to execute 'gcloud auth application-default login' or viur wont start the dev server

@phneutral
Copy link

I've gone through the whole process myself now on my M2 MacBook Air.
I struggled a bit and this guide helped me quite well.
The last crucial hint I would like to share was this post on Stackoverflow.

After adding SYSTEM_VERSION_COMPAT=1 to zshrc via echo 'export SYSTEM_VERSION_COMPAT=1' >> ~/.zshrc and reinstalling pipenv my local server is now running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment