(base) C: \ Users \ Super Noob> PIP install Django==3.1
Collecting the Django==3.1
Downloading the Django - 3.1 - py3 - none - any. WHL (7.8 MB)
266 kB eta 0:26:18 4.8 kB/s
ERROR: the Exception:
Traceback (the most recent call last) :
File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _vendor \ urllib3 \ response
Py, line 425, "in _error_catcher
Yield
File "C: \ ProgramData \ Anaconda3 \ 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 ""
bFile "C: \ ProgramData \ Anaconda3 \ lib \ site - packages \ PIP \ _vendor \ cachecontrol \ File
Wrapper. Py, line 62, "in the read
Data=https://bbs.csdn.net/topics/self.__fp.read (amt)
The File "C: \ ProgramData \ \ Anaconda3 \ lib \ HTTP client. Py", line 454, in the read
N=self. Readinto (b)
The File "C: \ ProgramData \ \ Anaconda3 \ lib \ HTTP client. Py", line 498, in readinto
N=self. Fp. Readinto (b)
The File "C: \ ProgramData \ Anaconda3 \ lib \ socket py", line 669, in readinto
Return the self. _sock. Recv_into (b)
The File "C: \ ProgramData \ Anaconda3 \ lib \ SSL py", line 1241, in recv_into
Return the self. Read (nbytes, buffer)
The File "C: \ ProgramData \ Anaconda3 \ lib \ SSL py", line 1099, 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) :
File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal, cli \ base_comman
D.p y ", line 188, in _main
Status=self. The run (options, args)
File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal, cli \ req_command
The lead-in ", line 185, wrapper in
Return func (self, options, args)
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal \ commands, instal
L.p y ", line 332, in the run
Requirement_set=resolver. Resolve (
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP \ _internal, resolution, lega
Cy \ resolver py, line 179, "" resolve in
Discovered_reqs. The extend (self. _resolve_one (requirement_set, the req))
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP \ _internal, resolution, lega
Cy \ resolver py, line 362, "in _resolve_one
Abstract_dist=self. _get_abstract_dist_for (req_to_install)
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP \ _internal, resolution, lega
Cy \ resolver py, line 314, "in _get_abstract_dist_for
Abstract_dist=self. The preparer. Prepare_linked_requirement (the req)
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal \ operations, prep
Motorcycle. Py, line 467, "in prepare_linked_requirement
Local_file=unpack_url (
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal \ operations, prep
Motorcycle. Py, line 255, "in unpack_url
The file=get_http_url (
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal \ operations, prep
Motorcycle. Py, line 129, "in get_http_url
From_path, content_type=_download_http_url (
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal \ operations, prep
Motorcycle. Py, line 281, "in _download_http_url
For the chunk in the download. Chunks:
File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal, cli \ progress_ba
Rs. Py, line 166, "in iter
For x in it:
The File "C: \ ProgramData \ Anaconda3 \ lib \ site - packages, PIP, _internal \ network \ utils p
Y ", line 15, in response_chunks
For the chunk in the response. Raw. Stream (
File "C: \ ProgramData \ Anaconda3 \ 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: \ ProgramData \ Anaconda3 \ 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: \ ProgramData \ Anaconda3 \ lib \ contextlib py", line 131, in __exit__
Self. Gen. Throw (type, value, traceback)
File "C: \ ProgramData \ Anaconda3 \ 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.
CodePudding user response:
good news, after query data, obtained the error reason is PIP version is too old, to upgrade to the latest version,CodePudding user response:
from a particular author: there is a more efficient method: to use PIP install - I software source address==version, this method can speed to 1 MB!