3

我安装了诗歌,但是在尝试调用诗歌时出现以下错误

zsh: command not found: poetry 

我知道我已经安装了它,因为我在尝试运行以下安装脚本时得到以下输出

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

Latest version already installed.
4

1 回答 1

27

默认安装位置是~/.poetry/bin/poetry

我将以下内容添加到我的.zshrc

export PATH=$PATH:$HOME/.poetry/bin
于 2020-03-20T04:42:51.137 回答