Assumes zsh and homebrew
brew install python3 pyenv
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
xcode-select --install
brew install openssl readline sqlite3 xz zlib
pyenv versions
pyenv install --list
pyenv install 3.9.9
pyenv local 3.9.9 # creates ./python-version which the pyenv python shim will find
python --version
brew install pipenv
# We want to tell pipenv to use the pyenv python shim. But the only input it
# accepts is a version number, which it will use to find our pyenv python.
echo 'alias pipenv="$(which pipenv) --python $(pyenv version-name)"' >> ~/.zshrc
- init venv:
pipenv install
- rm venv / reset:
pipenv --rm
- add package:
pipenv install <package>
- check outdated:
pipenv update --outdated
- update single package:
pipenv update <package>
- update all packages:
pipenv update