Skip to content

Instantly share code, notes, and snippets.

@ejabu
Created January 12, 2022 07:56
Show Gist options
  • Save ejabu/bc591c7ce376098a3ebd6a041be4f30e to your computer and use it in GitHub Desktop.
Save ejabu/bc591c7ce376098a3ebd6a041be4f30e to your computer and use it in GitHub Desktop.

---Tutorial

pyenv install --list | grep 3.8

3.8.0
3.8-dev
3.8.1
3.8.2
3.8.3
3.8.4
3.8.5
3.8.6
3.8.7
3.8.8
3.8.9
3.8.10
3.8.11
3.8.12
miniconda-3.8.3
miniconda3-3.8.3
miniconda3-3.8-4.8.2
miniconda3-3.8-4.8.3
miniconda3-3.8-4.9.2
miniconda3-3.8-4.10.3
pypy3.8-7.3.6-src
pypy3.8-7.3.6
pypy3.8-7.3.7-src
pypy3.8-7.3.7

pyenv install 3.8.12

pyenv versions
  system
  3.7.11
  3.7.11/envs/tes1
  3.7.11/envs/tes2
  3.7.12
  3.7.12/envs/gitleaks
  3.8.12
* gitleaks (set by PYENV_VERSION environment variable)
  tes1
  tes2
pyenv local 3.8.12
  
pyenv version
gitleaks (set by PYENV_VERSION environment variable)

/Users/reza/.pyenv/shims/python

pyenv virtualenv 3.8.12 git2

pyenv activate git2

pyenv version

git2 (set by PYENV_VERSION environment variable)

python -V

Python 3.8.12


pip install -r requirements.txt

https://github.com/pyenv/pyenv#basic-github-checkout

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile echo 'eval "$(pyenv init --path)"' >> ~/.profile

echo 'if command -v pyenv >/dev/null; then eval "$(pyenv init -)"; fi' >> ~/.bashrc

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/shims:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi

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