window系统中安装Jupyter Notebook方法记录

news2025/1/9 1:20:29

1.初步感受Jupyter Notebook

Jupyter Notebook
官网地址:Jupyter Notebook
Jupyter Notebook(此前被称为 IPython notebook)是一个交互式笔记本,支持运行 40 多种编程语言。
Jupyter Notebook 的本质是一个 Web 应用程序,便于创建和共享程序文档,支持实时代码,数学方程,可视化和 markdown。 用途包括:数据清理和转换,数值模拟,统计建模,机器学习等等 。

Jupyter Notebook: The Classic Notebook Interface
Jupyter Notebook: The Classic Notebook Interface
Try it your Browser可以使用本地浏览器预览效果
首先打开一个R语言的浏览器界面如下
在这里插入图片描述
Jupyter Notebook.Try it your Browser

2.Jupyter Notebook安装

使用pip安装
首先使用’win+r’ 输入cmd 打开命令提示行
使用cd命令定位到python编译器路径下,一般默认路径为:
C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Scripts
输入命令:cd C:\Users\Administrator\AppData\Local\Programs\Python\Python37\Scripts
输入命令:pip install jupyter
刚使用就报错了,如下:

ERROR: Exception:
Traceback (most recent call last):
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in _main
    status = self.run(options, args)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 204, in wrapper
    return func(self, options, args)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\commands\install.py", line 319, in run
    reqs, check_supported_wheels=not options.target_dir
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 128, in resolve
    requirements, max_rounds=try_to_avoid_resolution_too_deep
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 473, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 341, in resolve
    name, crit = self._merge_into_criterion(r, parent=None)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 172, in _merge_into_criterion
    if not criterion.candidates:
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\resolvelib\structs.py", line 139, in __bool__
    return bool(self._sequence)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in __bool__
    return any(self)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 129, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 30, in _iter_built
    for version, func in infos:
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 272, in iter_index_candidate_infos
    hashes=hashes,
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\index\package_finder.py", line 879, in find_best_candidate
    candidates = self.find_all_candidates(project_name)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\index\package_finder.py", line 824, in find_all_candidates
    page_candidates = list(page_candidates_it)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\index\sources.py", line 134, in page_candidates
    yield from self._candidates_from_page(self._link)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\index\package_finder.py", line 783, in process_project_url
    html_page = self._link_collector.fetch_page(project_url)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\index\collector.py", line 512, in fetch_page
    return _get_html_page(location, session=self.session)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\index\collector.py", line 422, in _get_html_page
    resp = _get_html_response(url, session=session)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\index\collector.py", line 137, in _get_html_response
    "Cache-Control": "max-age=0",
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\requests\sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "d:\pythonproject\venv\lib\site-packages\pip\_internal\network\session.py", line 449, in request
    return super().request(method, url, *args, **kwargs)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\cachecontrol\adapter.py", line 53, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\requests\adapters.py", line 449, in send
    timeout=timeout
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 696, in urlopen
    self._prepare_proxy(conn)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy
    conn.connect()
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\urllib3\connection.py", line 359, in connect
    conn = self._connect_tls_proxy(hostname, conn)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\urllib3\connection.py", line 506, in _connect_tls_proxy
    ssl_context=ssl_context,
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "d:\pythonproject\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "C:\Users\RS001\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 423, in wrap_socket
    session=session
  File "C:\Users\RS001\AppData\Local\Programs\Python\Python37\lib\ssl.py", line 827, in _create
    raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

即“ValueError: check_hostname requires server_hostname”错误,这个由于系统使用了代理引起的,停止使用就好了。
关掉代理继续执行结果如下(我的地址放在D盘了):

D:\pythonProject\venv\Scripts>pip install jupyter notebook
Collecting jupyter
  Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting notebook
  Downloading notebook-6.5.2-py3-none-any.whl (439 kB)
     |████████████████████████████████| 439 kB 15 kB/s
Collecting ipywidgets
  Downloading ipywidgets-8.0.4-py3-none-any.whl (137 kB)
     |████████████████████████████████| 137 kB 16 kB/s
Collecting ipykernel
  Downloading ipykernel-6.16.2-py3-none-any.whl (138 kB)
     |████████████████████████████████| 138 kB 15 kB/s
Collecting jupyter-console
  Downloading jupyter_console-6.5.0-py3-none-any.whl (23 kB)
Collecting qtconsole
  Downloading qtconsole-5.4.0-py3-none-any.whl (121 kB)
     |████████████████████████████████| 121 kB 21 kB/s
Collecting nbconvert
  Downloading nbconvert-7.2.9-py3-none-any.whl (274 kB)
     |████████████████████████████████| 274 kB 13 kB/s
Collecting Send2Trash>=1.8.0
  Downloading Send2Trash-1.8.0-py3-none-any.whl (18 kB)
Requirement already satisfied: tornado>=6.1 in d:\pythonproject\venv\lib\site-packages (from notebook) (6.1)
Requirement already satisfied: jinja2 in d:\pythonproject\venv\lib\site-packages (from notebook) (3.0.3)
Collecting jupyter-core>=4.6.1
  Downloading jupyter_core-4.12.0-py3-none-any.whl (89 kB)
     |████████████████████████████████| 89 kB 25 kB/s
Collecting nbformat
  Downloading nbformat-5.7.3-py3-none-any.whl (78 kB)
     |████████████████████████████████| 78 kB 21 kB/s
Collecting nbclassic>=0.4.7
  Downloading nbclassic-0.5.1-py3-none-any.whl (10.0 MB)
     |████████████████████████████████| 10.0 MB 34 kB/s
Collecting prometheus-client
  Downloading prometheus_client-0.16.0-py3-none-any.whl (122 kB)
     |████████████████████████████████| 122 kB 59 kB/s
Collecting jupyter-client>=5.3.4
  Downloading jupyter_client-7.4.9-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 79 kB/s
Collecting terminado>=0.8.3
  Downloading terminado-0.17.1-py3-none-any.whl (17 kB)
Collecting pyzmq>=17
  Downloading pyzmq-25.0.0-cp37-cp37m-win_amd64.whl (992 kB)
     |████████████████████████████████| 992 kB 99 kB/s
Collecting argon2-cffi
  Downloading argon2_cffi-21.3.0-py3-none-any.whl (14 kB)
Collecting nest-asyncio>=1.5
  Downloading nest_asyncio-1.5.6-py3-none-any.whl (5.2 kB)
Requirement already satisfied: ipython-genutils in d:\pythonproject\venv\lib\site-packages (from notebook) (0.2.0)
Requirement already satisfied: traitlets>=4.2.1 in d:\pythonproject\venv\lib\site-packages (from notebook) (5.0.5)
Requirement already satisfied: entrypoints in d:\pythonproject\venv\lib\site-packages (from jupyter-client>=5.3.4->notebook) (0.3)
Collecting tornado>=6.1
  Downloading tornado-6.2-cp37-abi3-win_amd64.whl (425 kB)
     |████████████████████████████████| 425 kB 86 kB/s
Collecting python-dateutil>=2.8.2
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pywin32>=1.0
  Downloading pywin32-305-cp37-cp37m-win_amd64.whl (12.2 MB)
     |████████████████████████████████| 12.2 MB 467 kB/s
Collecting jupyter-server>=1.8
  Downloading jupyter_server-1.23.5-py3-none-any.whl (346 kB)
     |████████████████████████████████| 346 kB 409 kB/s
Collecting notebook-shim>=0.1.0
  Downloading notebook_shim-0.2.2-py3-none-any.whl (13 kB)
Collecting traitlets>=4.2.1
  Downloading traitlets-5.9.0-py3-none-any.whl (117 kB)
     |████████████████████████████████| 117 kB 344 kB/s
Requirement already satisfied: packaging in d:\pythonproject\venv\lib\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (21.3)
Collecting anyio<4,>=3.1.0
  Downloading anyio-3.6.2-py3-none-any.whl (80 kB)
     |████████████████████████████████| 80 kB 341 kB/s
Collecting pywinpty
  Downloading pywinpty-2.0.10-cp37-none-win_amd64.whl (1.4 MB)
     |████████████████████████████████| 1.4 MB 204 kB/s
Collecting websocket-client
  Downloading websocket_client-1.5.1-py3-none-any.whl (55 kB)
     |████████████████████████████████| 55 kB 228 kB/s
Collecting sniffio>=1.1
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Requirement already satisfied: idna>=2.8 in d:\pythonproject\venv\lib\site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (2.10)
Requirement already satisfied: typing-extensions in d:\pythonproject\venv\lib\site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (4.0.1)
Requirement already satisfied: markupsafe>=2.0 in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (2.0.1)
Requirement already satisfied: pygments>=2.4.1 in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (2.9.0)
Collecting tinycss2
  Downloading tinycss2-1.2.1-py3-none-any.whl (21 kB)
Requirement already satisfied: bleach in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (4.1.0)
Collecting nbclient>=0.5.0
  Downloading nbclient-0.7.2-py3-none-any.whl (71 kB)
     |████████████████████████████████| 71 kB 95 kB/s
Collecting defusedxml
  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: importlib-metadata>=3.6 in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (4.5.0)
Collecting jupyterlab-pygments
  Downloading jupyterlab_pygments-0.2.2-py2.py3-none-any.whl (21 kB)
Collecting mistune<3,>=2.0.3
  Downloading mistune-2.0.5-py2.py3-none-any.whl (24 kB)
Collecting pandocfilters>=1.4.1
  Downloading pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.11.2-py3-none-any.whl (129 kB)
     |████████████████████████████████| 129 kB 149 kB/s
Requirement already satisfied: zipp>=0.5 in d:\pythonproject\venv\lib\site-packages (from importlib-metadata>=3.6->nbconvert->jupyter) (3.4.1)
Collecting jsonschema>=2.6
  Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)
     |████████████████████████████████| 90 kB 125 kB/s
Collecting fastjsonschema
  Downloading fastjsonschema-2.16.2-py3-none-any.whl (22 kB)
Requirement already satisfied: attrs>=17.4.0 in d:\pythonproject\venv\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (21.2.0)
Requirement already satisfied: importlib-resources>=1.4.0 in d:\pythonproject\venv\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (5.2.0)
Collecting pkgutil-resolve-name>=1.3.10
  Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
  Downloading pyrsistent-0.19.3-cp37-cp37m-win_amd64.whl (62 kB)
     |████████████████████████████████| 62 kB 129 kB/s
Requirement already satisfied: six>=1.5 in d:\pythonproject\venv\lib\site-packages (from python-dateutil>=2.8.2->jupyter-client>=5.3.4->notebook) (1.15.0)
Collecting argon2-cffi-bindings
  Downloading argon2_cffi_bindings-21.2.0-cp36-abi3-win_amd64.whl (30 kB)
Collecting cffi>=1.0.1
  Using cached cffi-1.15.1-cp37-cp37m-win_amd64.whl (179 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting soupsieve>1.2
  Downloading soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Requirement already satisfied: webencodings in d:\pythonproject\venv\lib\site-packages (from bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: psutil in d:\pythonproject\venv\lib\site-packages (from ipykernel->jupyter) (5.8.0)
Requirement already satisfied: matplotlib-inline>=0.1 in d:\pythonproject\venv\lib\site-packages (from ipykernel->jupyter) (0.1.2)
Collecting debugpy>=1.0
  Downloading debugpy-1.6.6-cp37-cp37m-win_amd64.whl (4.8 MB)
     |████████████████████████████████| 4.8 MB 113 kB/s
Requirement already satisfied: ipython>=7.23.1 in d:\pythonproject\venv\lib\site-packages (from ipykernel->jupyter) (7.25.0)
Requirement already satisfied: pickleshare in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (3.0.19)
Requirement already satisfied: backcall in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: colorama in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.4.4)
Requirement already satisfied: jedi>=0.16 in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.18.0)
Requirement already satisfied: setuptools>=18.5 in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (57.0.0)
Requirement already satisfied: decorator in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (5.0.9)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in d:\pythonproject\venv\lib\site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.2)
Requirement already satisfied: wcwidth in d:\pythonproject\venv\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=7.23.1->ipykernel->jupyter) (0.2.5)
Collecting widgetsnbextension~=4.0
  Downloading widgetsnbextension-4.0.5-py3-none-any.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 74 kB/s
Collecting jupyterlab-widgets~=3.0
  Downloading jupyterlab_widgets-3.0.5-py3-none-any.whl (384 kB)
     |████████████████████████████████| 384 kB 74 kB/s
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Downloading prompt_toolkit-3.0.36-py3-none-any.whl (386 kB)
     |████████████████████████████████| 386 kB 64 kB/s
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in d:\pythonproject\venv\lib\site-packages (from packaging->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (2.4.7)
Collecting qtpy>=2.0.1
  Downloading QtPy-2.3.0-py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 52 kB/s
Installing collected packages: traitlets, pywin32, pyrsistent, pkgutil-resolve-name, tornado, pyzmq, python-dateutil, pycparser, nest-asyncio, jupyter-core, jsonschema, fastjsonschema, soupsieve, nbformat, jupyter-client, cffi, tinycss2, sniffio, pywinpty, pandocfilters, nbclient, mistune, jupyterlab-pygments, defusedxml, beautifulsoup4, argon2-cffi-bindings, websocket-client, terminado, Send2Trash, prompt-toolkit, prometheus-client, nbconvert, argon2-cffi, anyio, jupyter-server, debugpy, notebook-shim, ipykernel, widgetsnbextension, qtpy, nbclassic, jupyterlab-widgets, qtconsole, notebook, jupyter-console, ipywidgets, jupyter
  Attempting uninstall: traitlets
    Found existing installation: traitlets 5.0.5
    Uninstalling traitlets-5.0.5:
      Successfully uninstalled traitlets-5.0.5
  Attempting uninstall: tornado
    Found existing installation: tornado 6.1
    Uninstalling tornado-6.1:
      Successfully uninstalled tornado-6.1
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\pythonproject\\venv\\lib\\site-packages\\~ornado\\speedups.cp37-win_amd64.pyd'
Check the permissions.

WARNING: You are using pip version 21.1.2; however, version 23.0 is available.
You should consider upgrading via the 'd:\pythonproject\venv\scripts\python.exe -m pip install --upgrade pip' command.

大部分都下载成功了,后面有点的问题出现。
我们可以看到,需要安装的库很多,具体包括:

Installing collected packages: traitlets, pywin32, pyrsistent, pkgutil-resolve-name, tornado, pyzmq, python-dateutil, pycparser, nest-asyncio, jupyter-core, jsonschema, fastjsonschema, soupsieve, nbformat, jupyter-client, cffi, tinycss2, sniffio, pywinpty, pandocfilters, nbclient, mistune, jupyterlab-pygments, defusedxml, beautifulsoup4, argon2-cffi-bindings, websocket-client, terminado, Send2Trash, prompt-toolkit, prometheus-client, nbconvert, argon2-cffi, anyio, jupyter-server, debugpy, notebook-shim, ipykernel, widgetsnbextension, qtpy, nbclassic, jupyterlab-widgets, qtconsole, notebook, jupyter-console, ipywidgets, jupyter

有的可能系统已经有合适的版本,就跳过安装了,在安装tornado出现一下错误:

ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\pythonproject\\venv\\lib\\site-packages\\~ornado\\speedups.cp37-win_amd64.pyd'

问题原因:升级的时候忘记关PyCharm,导致pip被占用,关掉重新输入pip install jupyter notebook就好了。

D:\pythonProject\venv\Scripts>pip install jupyter notebook
Collecting jupyter
  Using cached jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting notebook
  Using cached notebook-6.5.2-py3-none-any.whl (439 kB)
Collecting ipywidgets
  Using cached ipywidgets-8.0.4-py3-none-any.whl (137 kB)
Collecting jupyter-console
  Using cached jupyter_console-6.5.0-py3-none-any.whl (23 kB)
Collecting ipykernel
  Using cached ipykernel-6.16.2-py3-none-any.whl (138 kB)
Collecting qtconsole
  Using cached qtconsole-5.4.0-py3-none-any.whl (121 kB)
Collecting nbconvert
  Using cached nbconvert-7.2.9-py3-none-any.whl (274 kB)
Collecting nest-asyncio>=1.5
  Using cached nest_asyncio-1.5.6-py3-none-any.whl (5.2 kB)
Requirement already satisfied: jinja2 in d:\pythonproject\venv\lib\site-packages (from notebook) (3.0.3)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/jupyter-core/
Collecting jupyter-core>=4.6.1
  Using cached jupyter_core-4.12.0-py3-none-any.whl (89 kB)
Collecting nbclassic>=0.4.7
  Using cached nbclassic-0.5.1-py3-none-any.whl (10.0 MB)
Collecting jupyter-client>=5.3.4
  Using cached jupyter_client-7.4.9-py3-none-any.whl (133 kB)
Requirement already satisfied: ipython-genutils in d:\pythonproject\venv\lib\site-packages (from notebook) (0.2.0)
Collecting Send2Trash>=1.8.0
  Using cached Send2Trash-1.8.0-py3-none-any.whl (18 kB)
Collecting terminado>=0.8.3
  Using cached terminado-0.17.1-py3-none-any.whl (17 kB)
Collecting pyzmq>=17
  Using cached pyzmq-25.0.0-cp37-cp37m-win_amd64.whl (992 kB)
Collecting prometheus-client
  Using cached prometheus_client-0.16.0-py3-none-any.whl (122 kB)
Requirement already satisfied: traitlets>=4.2.1 in d:\pythonproject\venv\lib\site-packages (from notebook) (5.9.0)
Requirement already satisfied: tornado>=6.1 in d:\pythonproject\venv\lib\site-packages (from notebook) (6.2)
Collecting nbformat
  Using cached nbformat-5.7.3-py3-none-any.whl (78 kB)
Collecting argon2-cffi
  Using cached argon2_cffi-21.3.0-py3-none-any.whl (14 kB)
Requirement already satisfied: entrypoints in d:\pythonproject\venv\lib\site-packages (from jupyter-client>=5.3.4->notebook) (0.3)
Collecting python-dateutil>=2.8.2
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Requirement already satisfied: pywin32>=1.0 in d:\pythonproject\venv\lib\site-packages (from jupyter-core>=4.6.1->notebook) (305)
Collecting jupyter-server>=1.17.0
  Using cached jupyter_server-1.23.5-py3-none-any.whl (346 kB)
Collecting notebook-shim>=0.1.0
  Using cached notebook_shim-0.2.2-py3-none-any.whl (13 kB)
Collecting pywinpty
  Using cached pywinpty-2.0.10-cp37-none-win_amd64.whl (1.4 MB)
Collecting anyio<4,>=3.1.0
  Using cached anyio-3.6.2-py3-none-any.whl (80 kB)
Collecting websocket-client
  Using cached websocket_client-1.5.1-py3-none-any.whl (55 kB)
Requirement already satisfied: packaging in d:\pythonproject\venv\lib\site-packages (from jupyter-server>=1.17.0->nbclassic>=0.4.7->notebook) (21.3)
Collecting sniffio>=1.1
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Requirement already satisfied: idna>=2.8 in d:\pythonproject\venv\lib\site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.17.0->nbclassic>=0.4.7->notebook) (2.10)
Requirement already satisfied: typing-extensions in d:\pythonproject\venv\lib\site-packages (from anyio<4,>=3.1.0->jupyter-server>=1.17.0->nbclassic>=0.4.7->notebook) (4.0.1)
Requirement already satisfied: markupsafe>=2.0 in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (2.0.1)
Collecting pandocfilters>=1.4.1
  Using cached pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Requirement already satisfied: importlib-metadata>=3.6 in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (4.5.0)
Requirement already satisfied: bleach in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (4.1.0)
Collecting jupyterlab-pygments
  Using cached jupyterlab_pygments-0.2.2-py2.py3-none-any.whl (21 kB)
Collecting mistune<3,>=2.0.3
  Using cached mistune-2.0.5-py2.py3-none-any.whl (24 kB)
Collecting nbclient>=0.5.0
  Using cached nbclient-0.7.2-py3-none-any.whl (71 kB)
Collecting tinycss2
  Using cached tinycss2-1.2.1-py3-none-any.whl (21 kB)
Requirement already satisfied: pygments>=2.4.1 in d:\pythonproject\venv\lib\site-packages (from nbconvert->jupyter) (2.9.0)
Collecting defusedxml
  Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.11.2-py3-none-any.whl (129 kB)
Requirement already satisfied: zipp>=0.5 in d:\pythonproject\venv\lib\site-packages (from importlib-metadata>=3.6->nbconvert->jupyter) (3.4.1)
Collecting fastjsonschema
  Using cached fastjsonschema-2.16.2-py3-none-any.whl (22 kB)
Collecting jsonschema>=2.6
  Using cached jsonschema-4.17.3-py3-none-any.whl (90 kB)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in d:\pythonproject\venv\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (0.19.3)
Requirement already satisfied: pkgutil-resolve-name>=1.3.10 in d:\pythonproject\venv\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (1.3.10)
Requirement already satisfied: importlib-resources>=1.4.0 in d:\pythonproject\venv\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (5.2.0)
Requirement already satisfied: attrs>=17.4.0 in d:\pythonproject\venv\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (21.2.0)
Requirement already satisfied: six>=1.5 in d:\pythonproject\venv\lib\site-packages (from python-dateutil>=2.8.2->jupyter-client>=5.3.4->notebook) (1.15.0)
Collecting argon2-cffi-bindings
  Using cached argon2_cffi_bindings-21.2.0-cp36-abi3-win_amd64.whl (30 kB)
Collecting cffi>=1.0.1
  Using cached cffi-1.15.1-cp37-cp37m-win_amd64.whl (179 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting soupsieve>1.2
  Using cached soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Requirement already satisfied: webencodings in d:\pythonproject\venv\lib\site-packages (from bleach->nbconvert->jupyter) (0.5.1)
Requirement already satisfied: matplotlib-inline>=0.1 in d:\pythonproject\venv\lib\site-packages (from ipykernel->jupyter) (0.1.2)
Requirement already satisfied: psutil in d:\pythonproject\venv\lib\site-packages (from ipykernel->jupyter) (5.8.0)
Collecting debugpy>=1.0
  Using cached debugpy-1.6.6-cp37-cp37m-win_amd64.whl (4.8 MB)
Requirement already satisfied: ipython>=7.23.1 in d:\pythonproject\venv\lib\site-packages (from ipykernel->jupyter) (7.25.0)
Requirement already satisfied: setuptools>=18.5 in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (57.0.0)
Requirement already satisfied: decorator in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (5.0.9)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (3.0.19)
Requirement already satisfied: backcall in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.2.0)
Requirement already satisfied: pickleshare in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.7.5)
Requirement already satisfied: colorama in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.4.4)
Requirement already satisfied: jedi>=0.16 in d:\pythonproject\venv\lib\site-packages (from ipython>=7.23.1->ipykernel->jupyter) (0.18.0)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in d:\pythonproject\venv\lib\site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter) (0.8.2)
Requirement already satisfied: wcwidth in d:\pythonproject\venv\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=7.23.1->ipykernel->jupyter) (0.2.5)
Collecting widgetsnbextension~=4.0
  Using cached widgetsnbextension-4.0.5-py3-none-any.whl (2.0 MB)
Collecting jupyterlab-widgets~=3.0
  Using cached jupyterlab_widgets-3.0.5-py3-none-any.whl (384 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Using cached prompt_toolkit-3.0.36-py3-none-any.whl (386 kB)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in d:\pythonproject\venv\lib\site-packages (from packaging->jupyter-server>=1.17.0->nbclassic>=0.4.7->notebook) (2.4.7)
Collecting qtpy>=2.0.1
  Using cached QtPy-2.3.0-py3-none-any.whl (83 kB)
Installing collected packages: pyzmq, python-dateutil, pycparser, nest-asyncio, jupyter-core, jsonschema, fastjsonschema, soupsieve, nbformat, jupyter-client, cffi, tinycss2, sniffio, pywinpty, pandocfilters, nbclient, mistune, jupyterlab-pygments, defusedxml, beautifulsoup4, argon2-cffi-bindings, websocket-client, terminado, Send2Trash, prompt-toolkit, prometheus-client, nbconvert, argon2-cffi, anyio, jupyter-server, debugpy, notebook-shim, ipykernel, widgetsnbextension, qtpy, nbclassic, jupyterlab-widgets, qtconsole, notebook, jupyter-console, ipywidgets, jupyter
  Attempting uninstall: python-dateutil
    Found existing installation: python-dateutil 2.8.1
    Uninstalling python-dateutil-2.8.1:
      Successfully uninstalled python-dateutil-2.8.1
  Attempting uninstall: prompt-toolkit
    Found existing installation: prompt-toolkit 3.0.19
    Uninstalling prompt-toolkit-3.0.19:
      Successfully uninstalled prompt-toolkit-3.0.19
Successfully installed Send2Trash-1.8.0 anyio-3.6.2 argon2-cffi-21.3.0 argon2-cffi-bindings-21.2.0 beautifulsoup4-4.11.2 cffi-1.15.1 debugpy-1.6.6 defusedxml-0.7.1 fastjsonschema-2.16.2 ipykernel-6.16.2 ipywidgets-8.0.4 jsonschema-4.17.3 jupyter-1.0.0 jupyter-client-7.4.9 jupyter-console-6.5.0 jupyter-core-4.12.0 jupyter-server-1.23.5 jupyterlab-pygments-0.2.2 jupyterlab-widgets-3.0.5 mistune-2.0.5 nbclassic-0.5.1 nbclient-0.7.2 nbconvert-7.2.9 nbformat-5.7.3 nest-asyncio-1.5.6 notebook-6.5.2 notebook-shim-0.2.2 pandocfilters-1.5.0 prometheus-client-0.16.0 prompt-toolkit-3.0.36 pycparser-2.21 python-dateutil-2.8.2 pywinpty-2.0.10 pyzmq-25.0.0 qtconsole-5.4.0 qtpy-2.3.0 sniffio-1.3.0 soupsieve-2.3.2.post1 terminado-0.17.1 tinycss2-1.2.1 websocket-client-1.5.1 widgetsnbextension-4.0.5
WARNING: You are using pip version 21.1.2; however, version 23.0 is available.
You should consider upgrading via the 'd:\pythonproject\venv\scripts\python.exe -m pip install --upgrade pip' command.

继续输入:jupyter notebook
或者在浏览器地址栏输入:localhost:8888/tree
在这里插入图片描述
点击upload按钮,上传对应的ipynb文件,上传成功后点击打开
点击run按钮,即可开始运行代码。

3.Jupyter Notebook测试

按照上面提示的,我们上传一个项目文件,可以在github上下载一个文件上传测试。
在这里插入图片描述
运行一下,显示有错误,需要进一步调试运行环境。
此外,我们还可以安装函数提醒的库,命令:pip install jupyter_contrib_nbextensions
至此,本文结束,希望对大家有所帮助。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/337800.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Java体系最强干货分享—挑战40天准备Java面试,最快拿到offer!

如何准备java面试&#xff0c;顺利上岸大厂java岗位&#xff1f; 主攻Java的人越来越多&#xff0c;导致行业越来越卷&#xff0c;最开始敲个“hello world”都能进大厂&#xff0c;现在&#xff0c;八股、全家桶、算法等等面试题横行&#xff0c;卷到极致&#xff01;就拿今年…

聊聊什么是架构,你理解对了吗?

什么是架构?软件有架构?建筑也有架构?它们有什么相同点和不同点? 下面咱们就介绍一下,容易混淆的几个概念 一、系统与子系统 系统 泛指由一群有关联的个体组成,根据某种规则运作,能完成个别元件不能单独完成的工作的群体。它的意思是 “总体”、“整体”或“联盟” 子系…

Java基础常见面试题(二)

面向对象基础 面向对象和面向过程的区别 面向过程 优点&#xff1a; 性能比面向对象高&#xff0c;因为类调用时需要实例化&#xff0c;开销比较大&#xff0c;比较消耗资源;比如单片机、嵌入式开发、Linux/Unix等一般采用面向过程开发&#xff0c;性能是最重要的因素。 缺点…

如何做迭代规划

敏捷开发中的迭代规划如同使用需求漏斗&#xff0c;对各方需求定期进行优先级排序并层层拆解或合并&#xff0c;最终把高优先级且细粒度的需求从漏斗进入到研发团队&#xff0c;确保研发团队做对的事&#xff08;Do Right Things&#xff09;&#xff0c;避免团队跑偏方向或进度…

Netty之EventLoopGroup详解

目录 目标 Netty版本 Netty官方API NioEventLoopGroup和DefaultEventLoop的区别 EventLoopGroup实现对内部EventLoop的轮询 EventLoop对普通任务和定时任务的实现 执行普通任务 执行定时任务 划分EventLoopGroup职责 简言 实现 指定EventLoopGroup操作ChannelHandl…

手机上怎么在线生成gif?1分钟教你手机图片合成gif

怎样通过手机实现在线制作GIF图片的操作呢&#xff1f;接下来&#xff0c;给大家分享两招gif制作&#xff08;https://www.gif.cn/&#xff09;小窍门-【GIF中文网】不需要下载任何软件&#xff0c;小白也能轻松上手。支持原画质导出&#xff0c;图片无损处理。一起来看看具体步…

前端教学视频分享(视频内容与市场时刻保持紧密相连,火热更新中。。。)

⚠️获取公众号 本次要想大家推荐一下本人的公众号&#xff0c;在微信中搜索公众号 李帅豪在对话框中输入前端视频四个字即可立即获取所有视频&#xff0c;不收费无广告&#xff01;&#xff01;&#xff01; 本公众号收集了近两年来前端最新最优秀的学习视频&#xff0c;涵盖…

大数据技术架构(组件)30——Spark:Optimize--->Submit

2.1.9、Optimize--->Submit调优工作主要从CPU、内存、网络开销和IO四方面入手2.1.9.0、Spark On Yarn2.1.9.0.1、Jar包管理及本地性调优spark.yarn.jars :将jar包放到hdfs上&#xff0c;避免每次driver启动的时候都要进行jar包的分发。yarn.nodemanager.localizer.cache.cle…

ChatGPT告诉你智能制造

ChatGPT自上线以来&#xff0c;几乎得到了外界的一致好评&#xff0c;上线两个月&#xff0c;获得1亿月活跃用户&#xff0c;成为增长最快的面向消费者的应用。 面对ChatGPT拟人一般的问答能力&#xff0c;很多人认为它代表着AlphaGo之后&#xff0c;人工智能应用的第二次浪潮…

电子技术——MOS差分输入对

电子技术——MOS差分输入对 差分输入系统因其极高的共模抑制能力&#xff0c;差分输入几乎是是构建所有通用模拟IC的基本前级输入&#xff0c;也是现代信号传输理论的基础。本节我们讲解MOS差分输入对。 MOS差分输入对 下图展示了MOS差分输入对的基本原理图&#xff1a; 一个…

数据采集协同架构,集成马扎克、西门子、海德汉、广数、凯恩帝、三菱、海德汉、兄弟、哈斯、宝元、新代、发那科、华中各类数控以及各类PLC数据采集软件

文章目录 前言一、采集协同架构是什么&#xff1f;可以做什么&#xff08;数控、PLC配置采集&#xff09;&#xff1f;二、使用步骤 1.打开软件&#xff0c;配置MQTT或者数据库&#xff08;支持sqlserver、mysql等&#xff09;存储转发消息规则2.配置数控系统所采集的参数、转…

项目(今日指数)

一 项目架构1.1 今日指数技术选型【1】前端技术【2】后端技术栈【3】整体概览3.2 核心业务介绍1】业务结构预览【2】业务功能简介1.定时任务调度服务XXL-JOB通过RestTemplate多线程动态拉去股票接口数据&#xff0c;刷入数据库&#xff1b; 2.国内指数服务 3.板块指数服务 4.涨…

使用Harbor构建docker私有仓库

一、概述1、什么是HarborHarbor 是VMware公司开源的云本地 registry 仓库&#xff0c;有可视化的Web管理界面&#xff0c;可以方便的管理和储存 Docker 镜像。Harbor 支持在多个仓库直接进行复制镜像&#xff0c;提供用户管理和访问控制和活动审计。2、Harbor的优势基于角色控制…

mysql高级(事务、存储引擎、索引、锁、sql优化、MVCC)

文章目录1.事务1.1 四大特性ACID1.2 并发事务2.存储引擎2.1 InnoDB2.2 MyISAM2.3 Memory2.4 存储引擎特点2.5 存储引擎的选择3.性能分析3.1 查看执行频次3.2 慢查询日志3.3 profile3.4 explain4.索引4.1 索引结构B-TreeBTreeHash面试题4.2 索引分类思考题4.3 语法4.4 使用规则最…

抖音电商-安全带为例分析

为什么来抖音抖音对好货的扶持力度很大好商品对抖音商城至关

Python-项目实战--飞机大战-英雄登场(7)

目标设计英雄和子弹类使用pygame.key.get_pressed()移动英雄发射子弹1.设计英雄和子弹类1.1英雄需求游戏启动后&#xff0c;英雄出现在屏幕的水平中间位置&#xff0c;距离屏幕底部120像素英雄每隔0.5秒发射一次子弹&#xff0c;每次连发三枚子弹英雄默认不会移动&#xff0c;需…

vulnhub之CLOVER: 1

1.信息收集 输入arp-scan 192.168.239.0/24进行主机存活探测&#xff0c;可以看到192.168.239.171主机存活。 对192.168.239.171主机进行端口扫描&#xff0c;可以看到20、21、22、82、110、443、5781、8080。 发现21端口可以匿名登录&#xff0c;输入&#xff1a;anonymous…

牛客网Python篇数据分析习题(一)

1.现有一个Nowcoder.csv文件&#xff0c;它记录了牛客网的部分用户数据&#xff0c;包含如下字段&#xff08;字段与字段之间以逗号间隔&#xff09;&#xff1a; Nowcoder_ID&#xff1a;用户ID Level&#xff1a;等级 Achievement_value&#xff1a;成就值 Num_of_exercise&a…

春招快来了,杭电研究生学长聊聊踩过的坑,助你成功上岸

引言 大家好&#xff0c;我是James&#xff0c;由于之前文章内容浏览量太少以及这几个月的繁忙&#xff0c;一直没有静下心输出一些内容&#xff0c;随着疫情放开&#xff0c;新春来临&#xff0c;年后百业待兴&#xff0c;马上又是一年春季招聘。作为一个参加过2022年春&…

golang 通道类型

文章目录一、什么是通道类型二、通道产生的原因三、声明channel四、创建channel五、channel相关操作1、发送值2、接收值3、关闭通道3.1 注意3.2 特点四、通道类型1、无缓冲通道2、有缓冲通道五、单向通道一、什么是通道类型 Go 语言中的通道&#xff08;channel&#xff09;是一…