您的位置:首页 > 编程语言 > Python开发

Python - poetry(1)包管理利器的入门介绍

2021-09-14 14:43 627 查看

Python 虚拟环境详解

https://www.cnblogs.com/poloyy/p/15266382.html

 

poetry 官方介绍

github:https://github.com/python-poetry/poetry

文档(要🪜):https://python-poetry.org/docs/

 

安装

linux、mac 下安装

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

 

window 下安装

(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -

 

卸载

python get-poetry.py --uninstall

 

更新到最新的稳定版本

poetry self update

 

更新到预发布版本

poetry self update --preview

 

通过 pipx 安装、更新、卸载

安装 pipx

pip install pipx

 

安装、更新、卸载

pipx install poetry

pipx upgrade poetry

pipx uninstall poetry

  

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: