简体   繁体   English

尝试启动 Jupyter 笔记本时出现 DLL 错误

[英]DLL Error when trying to launch Jupyter notebook

Getting below error when trying to launch jupyter notebook.尝试启动 jupyter notebook 时出现以下错误。 Any help to address this error is appreciated.对解决此错误的任何帮助表示赞赏。

_cffi_ext.c C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend\\cffi__pycache___cffi_ext.c(213): fatal error C1083: Cannot open include file: 'sys/un.h': No such file or directory Traceback (most recent call last): File "C:\\Users\\emathew004\\anaconda3\\Scripts\\jupyter-notebook-script.py", line 6, in from notebook.notebookapp import main File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\notebook\\notebookapp.py", line 47, in from zmq.eventloop import ioloop File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq__init__.py", line 47, in from zmq import backend File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend__init__.py", line 40, in reraise(*exc_info) File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\utils\\sixcerpt.py", line 34, in reraise raise value File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend__init__.py", line 27, in _ns = select_backend(first) File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend\\select.py", line 2 _cffi_ext.c C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend\\cffi__pycache___cffi_ext.c(213):致命错误 C1083:无法打开包含文件:'sys/un.h':没有这样的文件或目录回溯(最近一次调用):文件“C:\\Users\\emathew004\\anaconda3\\Scripts\\jupyter-notebook-script.py”,第 6 行,从 notebook.notebookapp 导入主文件“C:\\Users\\emathew004\\ anaconda3\\lib\\site-packages\\notebook\\notebookapp.py”,第 47 行,从 zmq.eventloop 导入 ioloop 文件“C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq__init__.py”,第 47 行,在 from zmq import backend File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend__init__.py", line 40, in reraise(*exc_info) File "C:\\Users\\emathew004\\anaconda3\\lib \\site-packages\\zmq\\utils\\sixcerpt.py”,第 34 行,在重新提高值文件“C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend__init__.py”,第 27 行,在 _ns = select_backend(first) File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend\\select.py",第2行8, in select_backend mod = import (name, fromlist=public_api) File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend\\cython__init__.py", line 6, in from . 8、在select_backend mod = import (name, fromlist=public_api) File "C:\\Users\\emathew004\\anaconda3\\lib\\site-packages\\zmq\\backend\\cython__init__.py",第6行,在 from . import (constants, error, message, context, ImportError: DLL load failed: The specified module could not be found import (constants, error, message, context, ImportError: DLL load failed: The specified module could not be found

I've also had this problem, which I solved as follows.我也遇到过这个问题,解决方法如下。

  1. conda uninstall pyzmq (uninstall pyzmq) conda uninstall pyzmq (卸载 pyzmq)
  2. conda install pyzmq (reinstall pyzmq) conda install pyzmq (重新安装 pyzmq)
  3. conda install jupyter (reinstall jupyter) conda install jupyter (重新安装 jupyter)

你需要一个对应版本的visual c++ redistribution。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM