Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Poetry offers a lockfile to ensure repeatable installs, and can build your project for distribution.
划重点:依赖管理 包管理
安装很简单,就一行!
( 先确保安好Python3.7+
然后:
curl -sSL https://install.python-poetry.org | python3 -
根据提示(Add `export PATH="/root/.local/bin:$PATH"` to your shell configuration file.)把bin目录加入环境变量!
poetry --version #验证是否安装完成
基本使用:
poetry new poetry-demo # 创建脚手架 (项目模板)
poetry init # 在当前目录创建一个 pyproject.toml
ENJOY~
标签:bin,环境,poetry,Poetry,PATH,安装,your From: https://www.cnblogs.com/tugeler/p/16857124.html