curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python -
如显示curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接
需要配置下hosts文件:
sudo vim /etc/hosts
在最后一行添加:
185.199.108.133 raw.githubusercontent.com
安装完成后在需要添加环境变量(添加到~/.bashrc
最后一行):
export PATH="/home/<username>/.local/bin:$PATH"
检查是否可用:
poetry --version