What is the default install path for poetry
Question:
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.
Answers:
The default install location is ~/.poetry/bin/poetry
I added the following to my .zshrc
export PATH="$HOME/.local/bin:$PATH"
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
.
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 CMD+Shift+. for MacOS to view your hidden files and folders 🙂
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.
The default install location is ~/.poetry/bin/poetry
I added the following to my .zshrc
export PATH="$HOME/.local/bin:$PATH"
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
.
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 CMD+Shift+. for MacOS to view your hidden files and folders 🙂