当运行poetry update
以及其他相关命令时,我的进程卡在
Resolving dependencies...
我正在使用诗歌版本1.2.2,所以我想通过运行poetry self update -vvv
来升级它
进程在此时无限期挂起
Source (PyPI): Downloading sdist: msgpack-1.0.4.tar.gz
Creating new session for files.pythonhosted.org
如果这是一个bug,是否有解决它的方法?
您的本地网络有问题或PyPi有问题。
我建议先尝试不同的互联网连接,因为在讨论论坛或远程通常诊断本地网络问题是非常复杂的。
解决方案是使用pip删除诗歌:它是使用pip安装的,因此任何其他"卸载"方法都无效。
pip uninstall poetry
然后我用下面的命令重新安装它:
curl -sSL https://install.python-poetry.org | python3 -
似乎诗1.2中有一个bug导致了这个行为。