如何升级到最新版本?
规格:
- Windows 10,
- Visual Studio Code,
- 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│
如果有其他需要添加的内容,请让我知道。