IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> Python知识库 -> ModuleNotFoundError No module named ‘zmq.backend.cython.context‘ -> 正文阅读

[Python知识库]ModuleNotFoundError No module named ‘zmq.backend.cython.context‘

ModuleNotFoundError No module named ‘zmq.backend.cython.context’

在这里插入图片描述

在启动jupyter lab的时候,出现No module named 'zmq.backend.cython.context'问题。

(jupyterlab) D:\AWJ\Project>jupyter lab
Traceback (most recent call last):
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\Administrator\Envs\jupyterlab\Scripts\jupyter-lab.EXE\__main__.py", line 4, in <module>
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyterlab\__init__.py", line 7, in <module>
    from .labapp import LabApp
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyterlab\labapp.py", line 16, in <module>
    from jupyterlab_server import slugify, WORKSPACE_EXTENSION
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyterlab_server\__init__.py", line 4, in <module>
    from .app import LabServerApp
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyterlab_server\app.py", line 11, in <module>
    from jupyter_server.extension.application import ExtensionApp, ExtensionAppJinjaMixin
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyter_server\extension\application.py", line 21, in <module>
    from jupyter_server.serverapp import ServerApp
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyter_server\serverapp.py", line 73, in <module>
    from .services.kernels.kernelmanager import MappingKernelManager, AsyncMappingKernelManager
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyter_server\services\kernels\kernelmanager.py", line 19, in <module>
    from jupyter_client.session import Session
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
    from .connect import *
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyter_client\connect.py", line 21, in <module>
    import zmq
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\zmq\__init__.py", line 62, in <module>
    from zmq import backend
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\zmq\backend\__init__.py", line 32, in <module>
    raise original_error from None
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\zmq\backend\select.py", line 32, in select_backend
    mod = import_module(name)
  File "c:\users\administrator\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "c:\users\administrator\envs\jupyterlab\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
    from . import (
  File "zmq\backend\cython\socket.pyx", line 1, in init zmq.backend.cython.socket
ModuleNotFoundError: No module named 'zmq.backend.cython.context'

卸载重新安装pyzmq

(jupyterlab) D:\AWJ\Project>pip uninstall pyzmq
Found existing installation: pyzmq 21.0.1
Uninstalling pyzmq-21.0.1:
  Would remove:
    c:\users\administrator\envs\jupyterlab\lib\site-packages\pyzmq-21.0.1.dist-info\*
    c:\users\administrator\envs\jupyterlab\lib\site-packages\zmq\*
Proceed (Y/n)? Y
  Successfully uninstalled pyzmq-21.0.1

(jupyterlab) D:\AWJ\Project>pip install pyzmq
Collecting pyzmq
  Downloading pyzmq-22.3.0-cp39-cp39-win_amd64.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 18 kB/s
Installing collected packages: pyzmq
Successfully installed pyzmq-22.3.0

成功启动!

(jupyterlab) D:\AWJ\Project>jupyter lab
[I 2022-01-11 15:18:43.991 ServerApp] jupyterlab | extension was successfully linked.
[W 2022-01-11 15:18:58.436 ServerApp] The 'min_open_files_limit' trait of a ServerApp instance expected an int, not the NoneType None.
[W 2022-01-11 15:18:58.506 ServerApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 2022-01-11 15:18:58.507 LabApp] JupyterLab extension loaded from c:\users\administrator\envs\jupyterlab\lib\site-packages\jupyterlab
[I 2022-01-11 15:18:58.507 LabApp] JupyterLab application directory is c:\users\administrator\envs\jupyterlab\share\jupyter\lab
[I 2022-01-11 15:18:58.516 ServerApp] jupyterlab | extension was successfully loaded.
[I 2022-01-11 15:18:59.296 ServerApp] nbclassic | extension was successfully loaded.
[I 2022-01-11 15:18:59.519 ServerApp] Serving notebooks from local directory: D:\AWJ\Project
[I 2022-01-11 15:18:59.519 ServerApp] Jupyter Server 1.2.2 is running at:
[I 2022-01-11 15:18:59.520 ServerApp] http://localhost:8888/lab?token=a2d46ce69f087d9c958f8927874414b2313fc29f4d75b1c6
[I 2022-01-11 15:18:59.525 ServerApp]  or http://127.0.0.1:8888/lab?token=a2d46ce69f087d9c958f8927874414b2313fc29f4d75b1c6
[I 2022-01-11 15:18:59.525 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2022-01-11 15:18:59.732 ServerApp]

    To access the server, open this file in a browser:
        file:///C:/Users/Administrator/AppData/Roaming/jupyter/runtime/jpserver-11620-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=a2d46ce69f087d9c958f8927874414b2313fc29f4d75b1c6
     or http://127.0.0.1:8888/lab?token=a2d46ce69f087d9c958f8927874414b2313fc29f4d75b1c6
[W 2022-01-11 15:19:05.835 LabApp] Could not determine jupyterlab build status without nodejs

  Python知识库 最新文章
Python中String模块
【Python】 14-CVS文件操作
python的panda库读写文件
使用Nordic的nrf52840实现蓝牙DFU过程
【Python学习记录】numpy数组用法整理
Python学习笔记
python字符串和列表
python如何从txt文件中解析出有效的数据
Python编程从入门到实践自学/3.1-3.2
python变量
上一篇文章      下一篇文章      查看所有文章
加:2022-01-14 01:55:36  更:2022-01-14 01:58:14 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/16 3:36:25-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码