【发布时间】:2020-08-04 07:29:30
【问题描述】:
我安装了 python 版本 3.8.5 + pip。 现在我想用 pip install imgkit 安装 pipy imgkit。
这会发生:
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001A0FF25DE50>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/imgkit/
ERROR: Could not find a version that satisfies the requirement imgkit (from versions: none)
ERROR: No matching distribution found for imgkit
那么有人可以帮我安装这个吗?
【问题讨论】:
-
您的机器似乎无法从它尝试从中获取 imgkit 包的 pip 解析主机名。见stackoverflow.com/questions/7334199/… 你可以在终端中运行例如
nslookup pypi.org并检查你是否可以解析 pypi.org 后面的 IP 如果没有,你的本地 DNS 似乎有问题。