诗歌的默认安装路径是什么

时间:2020-03-20 04:42:51

标签: python python-poetry

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

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.

1 个答案:

答案 0 :(得分:5)

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

我在.zshrc

中添加了以下内容
export PATH=$PATH:$HOME/.poetry/bin