作者:lailai | 来源:互联网 | 2023-09-23 16:47
在我的cmd窗口中,键入
pip install pdfminer.six
这给了我这些错误.
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Eric Kim>pip install pdfminer.six
Collecting pdfminer.six
Retrying (Retry(total=4, cOnnect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=3, cOnnect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=2, cOnnect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=1, cOnnect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Retrying (Retry(total=0, cOnnect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/pdfminer-six/
Could not find a version that satisfies the requirement pdfminer.six (from versions: )
No matching distribution found for pdfminer.six
我在Windows 10上使用Python 3.6.该怎么办?有什么方法可以不使用pip来安装此软件包?我要使用此链接:https://pypi.python.org/pypi/pdfminer.six/20170720
我对编程很陌生,所以我并不了解.
解决方法:
正如重试错误消息告诉您的那样,这是一个代理问题.您的点子无法通过代理连接到互联网.
尝试将pip –proxy url:port pdfminer.six与url:port用作代理,例如proxy.example.com:8080.
如果这不起作用,请尝试使用没有代理的其他Internet连接通过pip安装软件包,或查看此thread,其中提供了有关pip和代理的更多答案.