马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 起个名字真心难 于 2020-2-23 20:46 编辑
在安装第三方库jieba的时候,出现了这个问题,不知道该如何解决?请求有大佬来指导一下吗?(图片发不出来,只好直接粘贴上来了)
C:\Users\34635>python -m pip install --upgrade pip
Collecting pip
Downloading /p ... y2.py3-none-any.whl (1.4MB)
|████████████████████████████████| 1.4MB 12kB/s
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
Successfully uninstalled pip-19.2.3
Successfully installed pip-20.0.2
C:\Users\34635>
C:\Users\34635>pip install jieba
Collecting jieba
Downloading jieba-0.42. (19.2 MB)
|██▌ | 1.5 MB 11 kB/s eta 0:26:39ERROR: Exception:
Traceback (most recent call last):
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\urllib3\", line 425, in _error_catcher
yield
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\urllib3\", line 507, in read
data = self._fp.read(amt) if not fp_closed else b""
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\cachecontrol\", line 62, in read
data = self.__fp.read(amt)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\http\", line 454, in read
n = (b)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\http\", line 498, in readinto
n = (b)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\", line 1241, in recv_into
return (nbytes, buffer)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\", line 1099, in read
return self._sslobj.read(len, buffer)
: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\base_command.py", line 186, in _main
status = (options, args)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\commands\", line 331, in run
(requirement_set)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\legacy_resolve.py", line 177, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\legacy_resolve.py", line 333, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\legacy_resolve.py", line 282, in _get_abstract_dist_for
abstract_dist = .prepare_linked_requirement(req)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\operations\", line 480, in prepare_linked_requirement
local_path = unpack_url(
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\operations\", line 282, in unpack_url
return unpack_http_url(
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\operations\", line 158, in unpack_http_url
from_path, content_type = _download_http_url(
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\operations\", line 303, in _download_http_url
for chunk in :
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\utils\", line 160, in iter
for x in it:
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\network\", line 15, in response_chunks
for chunk in (
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\urllib3\", line 564, in stream
data = (amt=amt, decode_content=decode_content)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\urllib3\", line 529, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\", line 131, in __exit__
(type, value, traceback)
File "c:\users\34635\appdata\local\programs\python\python38-32\lib\site-packages\pip\_vendor\urllib3\", line 430, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.: HTTPSConnectionPool(host='', port=443): Read timed out.