无法找到符合要求的版本(来自版本:none)

huangapple go评论58阅读模式
英文:

Could not find a version that satisfies the requirement pypdf (from versions: none)

问题

我安装pypdf遇到了问题,执行pip install pypdf后,出现了以下错误消息:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f012437ffa0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pypdf/
WARNING: Retrying (Retry(total=3, connect=None, read None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a0310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pypdf/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a0670>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pypdf/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a0820>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pypdf/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a09d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pypdf/
ERROR: Could not find a version that satisfies the requirement pypdf (from versions: none)
ERROR: No matching distribution found for pypdf
WARNING: There was an error checking the latest version of pip.

老实说,我并不太理解这些错误消息。从我在网上查到的信息来看,问题似乎确实来自于opencv?我已经尝试升级pip以及以下命令:

pip install opencv-python
pip install python-opencv
pip install opencv-contrib-python

但每次都遇到了相同的问题,即"Could not find a version that satisfies the requirement"。

英文:

I'm having trouble installing pypdf, here is my error message after executing: pip install pypdf

   WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f012437ffa0&gt;: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution&#39;)&#39;: /simple/pypdf/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a0310&gt;: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution&#39;)&#39;: /simple/pypdf/
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a0670&gt;: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution&#39;)&#39;: /simple/pypdf/
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a0820&gt;: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution&#39;)&#39;: /simple/pypdf/
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;&lt;pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f01243a09d0&gt;: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution&#39;)&#39;: /simple/pypdf/
    ERROR: Could not find a version that satisfies the requirement pypdf (from versions: none)
    ERROR: No matching distribution found for pypdf
    WARNING: There was an error checking the latest version of pip.

To be honest, I don't quite understand the error messages. From what I could see on the net the problem comes surely from opencv? I already try upgrating pip and the following command:

pip install opencv-python
pip install python-opencv
pip install opencv-contrib-python

But everytimes I got the same problem with "Could not find a version that satisfies the requirement"

答案1

得分: 0

临时解析名称失败

你的互联网连接出现问题。请稍后重试。
这也可能与你的DNS配置有关。

你可以尝试运行 ping pypi.org。结果应该类似于这样:

64 字节来自 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=3 ttl=60 time=5.67 毫秒
64 字节来自 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=4 ttl=60 time=8.74 毫秒
64 字节来自 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=5 ttl=60 time=16.2 毫秒
64 字节来自 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=6 ttl=60 time=9.06 毫秒
64 字节来自 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=7 ttl=60 time=7.50 毫秒
64 字节来自 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=8 ttl=60 time=6.09 毫秒
64 字节来自 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=9 ttl=60 time=9.54 毫秒

如果没有任何响应,那肯定是你的互联网连接或DNS配置的问题。与任何软件包都无关。

你还可以检查 https://status.python.org/ - 也许PyPI有或曾经有问题。但这非常罕见。

英文:

> Temporary failure in name resolution

Your internet connection was bad. Try again later.
It might also be issues with your DNS configuration.

You can try ping pypi.org. The result should look like this:

64 bytes from 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=3 ttl=60 time=5.67 ms
64 bytes from 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=4 ttl=60 time=8.74 ms
64 bytes from 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=5 ttl=60 time=16.2 ms
64 bytes from 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=6 ttl=60 time=9.06 ms
64 bytes from 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=7 ttl=60 time=7.50 ms
64 bytes from 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=8 ttl=60 time=6.09 ms
64 bytes from 2a04:4e42:200::223 (2a04:4e42:200::223): icmp_seq=9 ttl=60 time=9.54 ms

If there is nothing happening, it's definitely your internet connection / DNS configuration. It's not related to any of the packages.

You can also check https://status.python.org/ - maybe PyPI has/had issues. But that is very rare.

huangapple
  • 本文由 发表于 2023年2月7日 01:35:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/75364704.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定