诗歌安装- ConnectionError |无法建立新连接:[Errno 101] Network is unreachable' [已解决] [英] poetry install - ConnectionError | Failed to establish a new connection: [Errno 101] Network is unreachable' [Solved]

查看:821
本文介绍了诗歌安装- ConnectionError |无法建立新连接:[Errno 101] Network is unreachable' [已解决]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 诗歌版本 1.1.7.

运行 poetry install 会产生此错误.

Running poetry install yields this error.

这可以通过 bash 解决还是明确与我的网络有关?注意:互联网连接在浏览器中非常好.

Can this be resolved through bash or is this explicitly to do with my network? Note: Internet connectivity it perfectly fine in browsers.

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 Error.

推荐答案

我做到了:

  • 诗歌自我更新1.0.10
  • 诗歌安装

终端现在正在给我安装,这是应该的.

Terminal is giving me installs now, as it should.

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)
  ...

这篇关于诗歌安装- ConnectionError |无法建立新连接:[Errno 101] Network is unreachable' [已解决]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆