From MacOS Catalina, the terminal defaults to zsh, and just adding poetry will result in an error. I was able to handle it by adding the path to ~ / .zshrc, so please refer to it.
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
In the zsh environment, executing the poetry command in this state will result in an error.
poetry --version
> zsh: command not found: poetry
vim ~/.zshrc
export PATH="$HOME/.poetry/bin:$PATH"
Reboot the terminal
poetry --version
> Poetry version 1.0.10
poetry self update
> You are using the latest version
Thank you for your hard work.
Recommended Posts