如何升級到最新版本?
規格:
- 視窗 10,
- 視覺作業室代碼,
- 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│
如果還有什么我可以添加到帖子中,請告訴我。
uj5u.com熱心網友回復:
該錯誤訊息表明您可能已經安裝poetry了不支持自動poetry更新的pip 。您應該卸載poetry當前安裝的版本,然后使用推薦的方法重新安裝它,該方法使用自定義安裝腳本。
在 osx/linux 上,您只需運行curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -即可下載并運行此安裝腳本。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/346498.html
上一篇:使用bash-c逐行決議
