当我尝试执行“poetry add”时,我没有得到模块名称 cleo

She*_*lly 12 django python-poetry

我已经完全卸载并重新安装了诗歌,使用:

POETRY_UNINSTALL=1 bash -c 'curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python'
Run Code Online (Sandbox Code Playgroud)

然后我使用以下命令重新安装它:

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
Run Code Online (Sandbox Code Playgroud)

但它并没有解决问题。然后我 # 进行诗歌配置

export PATH="$HOME/.poetry/bin:$PATH"
Run Code Online (Sandbox Code Playgroud)

Meh*_*DJA 10

你只需要重新安装诗歌

# install
curl -sSL https://install.python-poetry.org | python3 -
# update
poetry self update
# uninstall
curl -sSL https://install.python-poetry.org | python3 - --uninstall
Run Code Online (Sandbox Code Playgroud)


小智 5

这个命令为我解决了这个问题(OSX):

rm -rf ~/.poetry
Run Code Online (Sandbox Code Playgroud)

我认为它会让你的本地文件陷入混乱!

请小心在您的用户文件夹中运行它!


小智 -2

poetry self update 1.0.10然后poetry install

正如这里提到的。两个单独的错误,都是由诗歌版本引起的。

  • 当我尝试上述操作时,我再次没有得到模块名称 cleo。 (13认同)