安装pip install jupyterthemes出错

来源:1-5 环境配置及Python语法实操

慕慕1545788

2021-02-21

(imooc_ai) C:\Users\Administrator>pip install jupyterthemes
Collecting jupyterthemes
Downloading jupyterthemes-0.20.0-py2.py3-none-any.whl (7.0 MB)
| | 10 kB 4.0 kB/s eta 0:29:15ERROR: Exception:
Traceback (most recent call last):
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: ‘jupyterthemes’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\urllib3\response.py”, line 438, in _error_catcher
yield
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\urllib3\response.py”, line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py”, line 62, in read
data = self.__fp.read(amt)
File “D:\software\Anaconda3\envs\imooc_ai\lib\http\client.py”, line 458, in read
n = self.readinto(b)
File “D:\software\Anaconda3\envs\imooc_ai\lib\http\client.py”, line 502, in readinto
n = self.fp.readinto(b)
File “D:\software\Anaconda3\envs\imooc_ai\lib\socket.py”, line 704, in readinto
return self._sock.recv_into(b)
File “D:\software\Anaconda3\envs\imooc_ai\lib\ssl.py”, line 1241, in recv_into
return self.read(nbytes, buffer)
File “D:\software\Anaconda3\envs\imooc_ai\lib\ssl.py”, line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\cli\base_command.py”, line 189, in _main
status = self.run(options, args)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\cli\req_command.py”, line 178, in wrapper
return func(self, options, args)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\commands\install.py”, line 316, in run
requirement_set = resolver.resolve(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py”, line 121, in resolve
self._result = resolver.resolve(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 453, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 318, in resolve
name, crit = self._merge_into_criterion(r, parent=None)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 173, in _merge_into_criterion
crit = Criterion.from_requirement(self._p, requirement, parent)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\resolvelib\resolvers.py”, line 82, in from_requirement
if not cands:
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\resolvelib\structs.py”, line 124, in bool
return bool(self._sequence)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py”, line 143, in bool
return any(self)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py”, line 38, in _iter_built
candidate = func()
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\factory.py”, line 167, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 300, in init
super().init(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 144, in init
self.dist = self._prepare()
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 226, in _prepare
dist = self._prepare_distribution()
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py”, line 311, in _prepare_distribution
return self._factory.preparer.prepare_linked_requirement(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\operations\prepare.py”, line 457, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\operations\prepare.py”, line 480, in _prepare_linked_requirement
local_file = unpack_url(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\operations\prepare.py”, line 230, in unpack_url
file = get_http_url(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\operations\prepare.py”, line 108, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\network\download.py”, line 163, in call
for chunk in chunks:
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\cli\progress_bars.py”, line 159, in iter
for x in it:
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_internal\network\utils.py”, line 64, in response_chunks
for chunk in response.raw.stream(
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\urllib3\response.py”, line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\urllib3\response.py”, line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File “D:\software\Anaconda3\envs\imooc_ai\lib\contextlib.py”, line 135, in exit
self.gen.throw(type, value, traceback)
File “D:\software\Anaconda3\envs\imooc_ai\lib\site-packages\pip_vendor\urllib3\response.py”, line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, “Read timed out.”)
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.

写回答

1回答

flare_zhao

2021-02-23

同学这个jupyter theme 你就不要去用了,我在课程里面其实有备注,就是有的版本支持这个包,有的效果不好,所以就不要装了。不影响所有功能

0
0

Python3入门人工智能 掌握机器学习+深度学习

人工智能基础全方位讲解,构建完整人工智能知识体系,带你入门AI

1946 学习 · 594 问题

查看课程