Skip to content

Instantly share code, notes, and snippets.

@dipankardas011
Last active November 21, 2024 06:05
Show Gist options
  • Save dipankardas011/7cbf800965079e733c46d1260437f028 to your computer and use it in GitHub Desktop.
Save dipankardas011/7cbf800965079e733c46d1260437f028 to your computer and use it in GitHub Desktop.
python pyenv command to install
curl https://pyenv.run | bash

pyenv doctor

env PYTHON_CONFIGURE_OPTS='--enable-optimizations --with-lto' PYTHON_CFLAGS='-march=native -mtune=native' pyenv install 3.12

export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
[[ -d $PYENV_ROOT/shims ]] && export PATH="$PYENV_ROOT/shims:$PATH"
pyenv global 3.12

pyenv rehash

pyenv shims

pip install -U pip
pyenv global system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment