Skip to content

Python: Poetry Installation

Neil Johnson edited this page Feb 10, 2023 · 2 revisions

To use Poetry for package and dependency management in your Python projects, first install Poetry on your development workstation. As of February 2023, the installation command to install poetry on Mac, Unix, or Windows (WSL) is:

curl -sSL https://install.python-poetry.org | python3 -

For additional details, or other platforms, see the installation instructions on the Poetry site.

Poetry will install "system-wide" so you only need to install it once.

Once you've installed Poetry correctly, run:

poetry --version

If this command returns a version number, Poetry is ready to use.

Pro Tip: since Poetry is a command line tool, you'll also want to install the Poetry tab completions for your specific shell.