Skip to content

Instantly share code, notes, and snippets.

@czuger
Last active November 24, 2024 12:31
Show Gist options
  • Select an option

  • Save czuger/8900bed2fc9ec2b616d7b0597f1215a6 to your computer and use it in GitHub Desktop.

Select an option

Save czuger/8900bed2fc9ec2b616d7b0597f1215a6 to your computer and use it in GitHub Desktop.
Pyenv install for M4
brew install liblzma-dev
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
cd ~/.pyenv && src/configure && make -C src
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
eval "$(pyenv init -)"
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.zshrc
pyenv install 3.11.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment