一、安装
pip install -U --user pip pipx pipx install poetry poetry --version # Poetry (version 1.3.2)
二、换源
1. 安装插件(https://github.com/arcesium/poetry-plugin-pypi-mirror)
pipx inject poetry poetry-plugin-pypi-mirror
2. 新建或修改配置文件config.toml,增加如下内容(Linux系统在~/.config/pypoetry,Windows在%APPDATA%\pypoetry,Mac在~/Library/Preferences/pypoetry)
[plugins] [plugins.pypi_mirror] url = "https://mirrors.cloud.tencent.com/pypi/simple/"
注:更改url的值即可换用其他镜像源
三、升级poetry
poetry self update
标签:pypi,poetry,pipx,升级,换源,mirror,pypoetry From: https://www.cnblogs.com/waketzheng/p/17142322.html