Home > other >  Upgrade PIP, the following problems, why???????
Upgrade PIP, the following problems, why???????

Time:11-21

C: \ WINDOWS \ system32 & gt; Python -m PIP install, upgrade PIP
Collecting PIP
Downloading PIP - 20.2.2 - py2. Py3 - none - any. WHL (1.5 MB)
| | | | | | | | | 204 kB to 8.2 kB/s eta 0:02:40 ERROR: Exception:
Traceback (the most recent call last) :
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _vendor \ urllib3 \ response py", line 425, in _error_catcher
Yield
File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _vendor \ urllib3 \ response py", line 507, in the read
Data=https://bbs.csdn.net/topics/self._fp.read (amt) if not fp_closed else ""
bThe File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _vendor \ cachecontrol \ filewrapper py", line 62, in the read
Data=https://bbs.csdn.net/topics/self.__fp.read (amt)
The File "C: \ \ Python \ Python37 \ lib \ HTTP client. Py", line 457, in the read
N=self. Readinto (b)
The File "C: \ \ Python \ Python37 \ lib \ HTTP client. Py", line 501, in readinto
N=self. Fp. Readinto (b)
The File "C: \ Python \ Python37 \ lib \ socket py", line 589, in readinto
Return the self. _sock. Recv_into (b)
The File "C: \ Python \ Python37 \ lib \ SSL py", line 1071, in recv_into
Return the self. Read (nbytes, buffer)
The File "C: \ Python \ Python37 \ lib \ SSL py", line 929, in the read
Return the self. _sslobj. Read (len, buffer)
Socket. The timeout: The read operation timed out


During handling of the above exception, another exception occurred:


Traceback (the most recent call last) :
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal, cli \ base_command py", line 186, in _main
Status=self. The run (options, args)
File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal \ commands, the py", line 331, in the run
Resolver. Resolve (requirement_set)
The File "C: \ Python \ Python37 \ lib \ site - packages \ PIP \ _internal \ legacy_resolve py", line 177, resolve in
Discovered_reqs. The extend (self. _resolve_one (requirement_set, the req))
The File "C: \ Python \ Python37 \ lib \ site - packages \ PIP \ _internal \ legacy_resolve py", line 333, in _resolve_one
Abstract_dist=self. _get_abstract_dist_for (req_to_install)
The File "C: \ Python \ Python37 \ lib \ site - packages \ PIP \ _internal \ legacy_resolve py", line 282, in _get_abstract_dist_for
Abstract_dist=self. The preparer. Prepare_linked_requirement (the req)
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal \ operations \ prepare py", line 482, in prepare_linked_requirement
Hashes=hashes,
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal \ operations \ prepare py", line 287, in unpack_url
Hashes=hashes,
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal \ operations \ prepare py", line 159, in unpack_http_url
The link, the downloader, temp_dir path, hashes
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal \ operations \ prepare py", line 303, in _download_http_url
For the chunk in the download. Chunks:
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal \ utils \ UI py", line 160, in iter
For x in it:
File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _internal \ network \ utils py", 39, the line in response_chunks
Decode_content=False,
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _vendor \ urllib3 \ response py", line 564, in the stream
Data=https://bbs.csdn.net/topics/self.read (amt=amt, decode_content=decode_content)
File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _vendor \ urllib3 \ response py", line 529, in the read
Raise IncompleteRead (self _fp_bytes_read, self length_remaining)
The File "C: \ Python \ Python37 \ lib \ contextlib py", line 130, in __exit__
Self. Gen. Throw (type, value, traceback)
The File "C: \ Python \ Python37 \ lib \ site - packages, PIP, _vendor \ urllib3 \ response py", line 430, in _error_catcher
Raise ReadTimeoutError (self _pool, None, "Read timed out.")
PIP. _vendor. Urllib3. Exceptions. ReadTimeoutError: HTTPSConnectionPool (host='files.pythonhosted.org', the port=443) : Read timed out.
WARNING: You are using PIP version 20.0.2; Clear that version 20.2.2 is available.
You should consider upgrading via the 'C: \ Python \ Python37 \ Python exe -m PIP install, upgrade PIP' command.

C: \ WINDOWS \ system32 & gt;
C: \ WINDOWS \ system32 & gt;

CodePudding user response:

  • Related