[英]Poetry was not installed with the recommended installer. Cannot update automatically
How to I upgrade to the latest version?如何升级到最新版本?
Specification:规格:
Current Version:当前版本:
me@PF2DCSXD:/mnt/c/Users/user/Documents/GitHub/workers-python/workers/composite_key/compositekey/tests$ python3 --version
Python 3.8.10
Attempt to update |尝试更新 |
poetry self update
: poetry self update
:
me@PF2DCSXD:/mnt/c/Users/user/Documents/GitHub/workers-python/workers/composite_key/compositekey/tests$ poetry self update
RuntimeError
Poetry was not installed with the recommended installer. Cannot update automatically.
at ~/.local/lib/python3.8/site-packages/poetry/console/commands/self/update.py:389 in _check_recommended_installation
385│ current = Path(__file__)
386│ try:
387│ current.relative_to(self.home)
388│ except ValueError:
→ 389│ raise RuntimeError(
390│ "Poetry was not installed with the recommended installer. "
391│ "Cannot update automatically."
392│ )
393│
Please let me know if there is anything else I can add to post.如果还有什么我可以添加到帖子中,请告诉我。
The error message suggests you've probably installed poetry
with pip, which does not support automatic poetry
updates.该错误消息表明您可能已经使用 pip 安装了
poetry
,但它不支持自动poetry
更新。 You should uninstall the poetry
version currently installed, and reinstall it using the recommended method , which uses a custom installation script.您应该卸载当前安装的
poetry
版本,并使用推荐的方法重新安装它,该方法使用自定义安装脚本。
On osx/linux, you'll just have to run curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
在 osx/linux 上,你只需要运行
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
to download and run this installation script. curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
下载并运行此安装脚本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.