An error occurs when using PIP install XX command

  When using the PIP command to install, I encountered such an error:

C:\Users\86962>pip install Appium-Python-Client
Collecting Appium-Python-Client
Collecting selenium>=2.47.0 (from Appium-Python-Client)
  Downloading (946kB)
    10% |███▌                            | 102kB 2.2kB/s eta 0:06:23Exception:
Traceback (most recent call last):
  File "c:\python36\lib\site-packages\pip\_vendor\urllib3\", line 302, in _error_catcher
  File "c:\python36\lib\site-packages\pip\_vendor\urllib3\", line 384, in read
    data =
  File "c:\python36\lib\site-packages\pip\_vendor\cachecontrol\", line 60, in read
    data =
  File "c:\python36\lib\http\", line 449, in read
    n = self.readinto(b)
  File "c:\python36\lib\http\", line 493, in readinto
    n = self.fp.readinto(b)
  File "c:\python36\lib\", line 586, in readinto
    return self._sock.recv_into(b)
  File "c:\python36\lib\", line 1009, in recv_into
    return, buffer)
  File "c:\python36\lib\", line 871, in read
    return, buffer)
  File "c:\python36\lib\", line 631, in read
    v =, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python36\lib\site-packages\pip\", line 215, in main
    status =, args)
  File "c:\python36\lib\site-packages\pip\commands\", line 324, in run
  File "c:\python36\lib\site-packages\pip\req\", line 380, in prepare_files
  File "c:\python36\lib\site-packages\pip\req\", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "c:\python36\lib\site-packages\pip\", line 821, in unpack_url
  File "c:\python36\lib\site-packages\pip\", line 659, in unpack_http_url
  File "c:\python36\lib\site-packages\pip\", line 882, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "c:\python36\lib\site-packages\pip\", line 603, in _download_url
  File "c:\python36\lib\site-packages\pip\utils\", line 46, in check_against_chunks
    for chunk in chunks:
  File "c:\python36\lib\site-packages\pip\", line 571, in written_chunks
    for chunk in chunks:
  File "c:\python36\lib\site-packages\pip\utils\", line 139, in iter
    for x in it:
  File "c:\python36\lib\site-packages\pip\", line 560, in resp_read
  File "c:\python36\lib\site-packages\pip\_vendor\urllib3\", line 436, in stream
    data =, decode_content=decode_content)
  File "c:\python36\lib\site-packages\pip\_vendor\urllib3\", line 401, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "c:\python36\lib\", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\python36\lib\site-packages\pip\_vendor\urllib3\", line 307, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='', port=443): Read timed out.
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.


According to the prompt of error report:



You know, it’s because the version of my PIP module is a little old and needs to be updated, so it went on strike before it was updated

The solution is also very simple. Directly enter Python – M PIP install — upgrade PIP in the CMD command box, and then press enter. OK。 When it’s done ~~


Then you can continue to use PIP install to install the modules you need

Similar Posts: