Skip to content

Instantly share code, notes, and snippets.

@zcemycl
Created May 11, 2023 20:47
Show Gist options
  • Save zcemycl/da206f70e78dd9fd9ce0c1768b4a8aee to your computer and use it in GitHub Desktop.
Save zcemycl/da206f70e78dd9fd9ce0c1768b4a8aee to your computer and use it in GitHub Desktop.
Pyenv and Poetry in Macos
  1. Manage different versions of python
brew install pyenv
pyenv install 3.9.13
~/.pyenv/versions/3.9.13/bin/{python,pip}
  1. Install poetry for dependencies.
rm poetry.lock
~/.pyenv/versions/3.9.13/bin/pip install poetry
~/.pyenv/versions/3.9.13/bin/poetry install
~/.pyenv/versions/3.9.13/bin/poetry run python main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment