poetry 默认使用官方镜像源下载,特别慢。换成国内源加快速度。
方法一
poetry source add tuna https://pypi.tuna.tsinghua.edu.cn/simple
poetry source add aliyun https://mirrors.aliyun.com/pypi/simple
方法二
修改 pyproject.toml 文件
# pyproject.toml[[tool.poetry.source]]
name = "mirrors"
url = "https://pypi.tuna.tsinghua.edu.cn/simple/"
priority = "priority"