【发布时间】:2021-12-17 16:56:28
【问题描述】:
如何升级到最新版本?
规格:
- Windows 10,
- Visual Studio 代码,
- Ubuntu Bash。
当前版本:
me@PF2DCSXD:/mnt/c/Users/user/Documents/GitHub/workers-python/workers/composite_key/compositekey/tests$ python3 --version
Python 3.8.10
尝试更新 | 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│
如果还有什么我可以添加到帖子中的,请告诉我。
【问题讨论】:
-
不要使用
self:update,应该是poetry self update(带空格)。如果您使用他们的安装程序安装了诗歌,则此方法应该可以工作。 -
嗯,好的。我现在有一个新错误。我已经更新了@Seon 的帖子
标签: python python-3.x bash python-poetry