我无法使用Pip安装模块或对其进行更新。
我试图安装模块,但是我收到一条错误消息和升级pip
的建议。
运行升级命令时,我只会收到更多错误。
我通过Windows 10 powershell
选项在admin
中运行代码:
pip install tesseract (it actually happens with other modules too)
我未成功运行更新行:
python -m pip install --upgrade pip
运行第一行后,出现以下错误:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forced to close by the remote host', None, 10054, None))': /simple/tesseract/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'UAn existing connection was forced to close by the remote host', None, 10054, None))': /simple/tesseract/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forced to close by the remote host', None, 10054, None))': /simple/tesseract/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forced to close by the remote host', None, 10054, None))': /simple/tesseract/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forced to close by the remote host', None, 10054, None))': /simple/tesseract/
Could not find a version that satisfies the requirement tesseract (from versions: )
No matching distribution found for tesseract
You are using pip version 19.0.3, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
第二条命令后,出现:
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'n existing connection was forced to close by the remote host', None, 10054, None))': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'n existing connection was forced to close by the remote host', None, 10054, None))': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'n existing connection was forced to close by the remote host', None, 10054, None))': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'n existing connection was forced to close by the remote host', None, 10054, None))': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'n existing connection was forced to close by the remote host', None, 10054, None))': /simple/pip/
Requirement already up-to-date: pip in c:\users\user\appdata\local\programs\python\python37\lib\site-packages (19.0.3)