WSL 2 Project Setup with Poetry and Zsh

Assuming Ubuntu (22.04)

  • Ensure you have pip installed: sudo apt install python3-venv python3-pip

  • Install pipx as it appears to be the default way of installing poetry:

    • python3 -m pip install --user pipx

    • python3 -m pipx ensurepath

  • Install poetry

    • pipx install poetry
  • Enable Zsh tab completion

    • poetry completions zsh > $ZSH_CUSTOM/plugins/poetry/_poetry