'What is the default install path for poetry

I installed poetry, however I'm getting the following error when attempting to call poetry

zsh: command not found: poetry 

I know I have it installed because I get the following output when trying to run the following install script

$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python                                                                             
Retrieving Poetry metadata                                                                                                                                                                    

Latest version already installed.


Solution 1:[1]

The default install location is ~/.poetry/bin/poetry

I added the following to my .zshrc

export PATH=$PATH:$HOME/.poetry/bin

Solution 2:[2]

Initially I wanted to run poetry within a condo environment. After running

    pip install poetry

I saw it was installed using my local Python and not linked to a conda environment. In my case I added

    export PATH="$HOME/.local/bin:$PATH"

to the end of the .zshrc file under my home directory.

Tip: You can use Command+Shift+Dot for MacOS to view your hidden files and folders :)

Solution 3:[3]

Update for the new version of the official poetry installer:

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

This version will install in your default python3 bin. For example: $HOME/Library/Python/3.9/bin, the installer will print out the location to your shell.

Add

export PATH=$HOME/Library/Python/3.9/bin:$PATH

to ~/.profile or ~/.zprofile.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 arshbot
Solution 2 Chr Ninja
Solution 3 it's-yer-boy-chet