python自動管理包工具 poetry

vx_guanchaoguo0發表於2024-07-15

安裝

brew install poetry

設定源 pyproject.toml

[[tool.poetry.source]]
name = "ali"
url = "https://mirrors.aliyun.com/pypi/simple/"
priority = "primary"


[[tool.poetry.source]]
name = "tencent"
url = "https://mirrors.cloud.tencent.com/pypi/simple/"
priority = "primary"


[[tool.poetry.source]]
name = "tsinghua"
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/"
priority = "default"

安裝解除安裝包

poetry  add/remove
```

### 自動安裝

poetry install


### 隔離環境

poetry shell

相關文章