ERROR: Exception:
Traceback (most recent call last):
File "D:\Python3.11.7\Lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
yield
File "D:\Python3.11.7\Lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
data = self._fp_read(amt) if not fp_closed else b""
^^^^^^^^^^^^^^^^^^
File "D:\Python3.11.7\Lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
^^^^^^^^^^^^^^^^^^
File "D:\Python3.11.7\Lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 98, in read
data: bytes = self.__fp.read(amt)
^^^^^^^^^^^^^^^^^^^
File "D:\Python3.11.7\Lib\http\client.py", line 473, in read
s = self.fp.read(amt)
^^^^^^^^^^^^^^^^^
File "D:\Python3.11.7\Lib\socket.py", line 706, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python3.11.7\Lib\ssl.py", line 1315, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python3.11.7\Lib\ssl.py", line 1167, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
原因:网速太慢,连接超时
解决方法:添加源
一开始我是:pip install pyqt5 lxml --upgrade
添加源后:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyqt5 lxml --upgrade