sudo apt update- Install curl if you don't have it already
sudo apt install -y curlcurl -sSL https://install.python-poetry.org | python3 -poetry --version- This should output the version of Poetry that was installed.
- Add Poetry to your system PATH by adding the following line to your shell configuration file (e.g.,
~/.bashrc,~/.zshrc):
export PATH="$HOME/.local/bin:$PATH"(Poetry, by default, is installed in the ~/.local/bin directory in Unix)
source ~/.bashrc- (or
source ~/.zshrcif you are using zsh)