侧边栏壁纸
  • 累计撰写 66 篇文章
  • 累计创建 47 个标签
  • 累计收到 111 条评论

目 录CONTENT

文章目录

关于安装anaconda后spyder、jupyter等无法运行的解决

草莓牛奶
2023-08-27 / 0 评论 / 0 点赞 / 419 阅读 / 363 字 / 正在检测是否收录...
温馨提示:
「博客文章out of date 会及时更新,无特殊说明仍然有效,欢迎指正内容中的错误」

一、问题描述

anaconda安装后,spyder、jupyter无法运行,出现类似于如下报错

[W 2023-08-22 23:50:38.896 LabApp] Could not determine jupyterlab build status without nodejs
Bad file descriptor (C:\projects\libzmq\src\epoll.cpp:100)
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
Bad file descriptor (C:\projects\libzmq\src\epoll.cpp:100)

二、正确操作

#卸载pyzmq(在anaconda prompt中执行)
pip uninstall pyzmq
#安装最新版本
pip install pyzmq

三、可能错误

目前网络上查询到的方法大多如下:

#卸载高版本pyzmq(anaconda prompt中执行)
pip uninstall pyzmq
#安装老版本
pip install pyzmq==19.0.2

但是实际上往往会导致pyzmq的编译错误

image-20230827190834297

Failed building wheel for pyzmq
building 'zmq.libzmq' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools":
      error: command 'D:\\Microsoft\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyzmq
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects
      AttributeError: 'MSVCCompiler' object has no attribute '_vcruntime_redist'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyzmq
  Running setup.py clean for pyzmq
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects
0

评论区