python-3.x - 诗歌安装- ConnectionError | 无法建立新连接:[Errno 101] Network is unreachable' [已解决]
问题描述
我正在使用Poetry version 1.1.7
.
运行会poetry install
产生此错误。
这可以通过 bash 解决还是明确与我的网络有关?注意:互联网连接在浏览器中非常好。
me@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/CompositeKey/CompositeKey$ poetry install
Updating dependencies
Resolving dependencies... (225.5s)
ConnectionError
HTTPSConnectionPool(host='pkgs.dev.azure.com', port=443): Max retries exceeded with url: <CENSORED> (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f53950c3ee0>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
at ~/.poetry/lib/poetry/_vendor/py3.8/requests/adapters.py:516 in send
512│ if isinstance(e.reason, _SSLError):
513│ # This branch is for urllib3 v1.22 and later.
514│ raise SSLError(e, request=request)
515│
→ 516│ raise ConnectionError(e, request=request)
517│
518│ except ClosedPoolError as e:
519│ raise ConnectionError(e, request=request)
520│
将URL 粘贴到我的浏览器时会引发401 Unauthorized 错误。
解决方案
我做了:
poetry self update 1.0.10
poetry install
终端现在正在给我安装,因为它应该。
me@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/CompositeKey/CompositeKey$ poetry self update 1.0.10
Updating to 1.0.10
- Downloading poetry-1.0.10-linux.tar.gz 100%
Poetry (1.0.10) is installed now. Great!
me@LAPTOP-G1DAPU88:~/.ssh/workers-python/workers/CompositeKey/CompositeKey$ poetry install
Updating dependencies
Resolving dependencies... (101.5s)
Writing lock file
Package operations: 167 installs, 0 updates, 0 removals
- Installing six (1.16.0)
...
推荐阅读
- javascript - Could setInterval wakes up phone?
- css - Angular Material 2 mat-form-field offset property in IE 11
- git - how to make change in GitIgnore listed file?
- batch-file - 用于复制上周文件的 Windows 批处理脚本
- javascript - Google API 自动完成限制
- java - How can I collect object using thymeleaf?
- javascript - SailsJS - index.html is not working in SailsJS
- ruby-on-rails-5 - 如何使用链接在没有 GET 方法的情况下将数据发送到另一个控制器?
- python - 如何使用给定值比较数据框列?
- c++ - 相同图像的不同base64编码