Last active
December 28, 2025 01:58
-
-
Save zahna/b82b381bda3f195ff10e242639f3629b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd $HOME | |
| git clone git@github.com:pyenv/pyenv.git .pyenv | |
| git clone https://github.com/pyenv/pyenv-virtualenv.git ./.pyenv/plugins/pyenv-virtualenv | |
| In your .profile, add: | |
| # Initialize pyenv | |
| export PYENV_ROOT="$HOME/.pyenv" | |
| export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" | |
| Then: | |
| . .profile | |
| pyenv versions | |
| pyenv install -l | |
| pyenv install {version} | |
| pyenv virtualenv {version} {version}_main | |
| pyenv activate {version}_main | |
| pip install -r ./requirements.txt | |
| deactivate | |
| pyenv global {version}_main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment