英文:
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 '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.
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论