win10下jupyter Notebook运行闪退

运行发现总是闪退,赶紧通过cmd查看下,

G:\data\fire>jupyter notebook
_cffi_ext.c
E:\Work_Software\Anaconda3\lib\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(213): fatal error C1083: 无法打开 包括文件: “sys/un.h”: No such file or directory
Traceback (most recent call last):
File "E:\Work_Software\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in <module>
from notebook.notebookapp import main
File "E:\Work_Software\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 46, in <module>
from zmq.eventloop import ioloop
File "E:\Work_Software\Anaconda3\lib\site-packages\zmq\__init__.py", line 47, in <module>
from zmq import backend
File "E:\Work_Software\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
reraise(*exc_info)
File "E:\Work_Software\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "E:\Work_Software\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
_ns = select_backend(first)
File "E:\Work_Software\Anaconda3\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
mod = __import__(name, fromlist=public_api)
File "E:\Work_Software\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed: 找不到指定的模块。

 

通过查看其他博主的博客找到一个比较好的方法

  重装pyzmq

先将原来的版本卸载  

pip uninstall pyzmq 

 再重新安装:

pip install pyzmq 


 

 ok!  

引用自  https://www.cnblogs.com/it-tsz/p/9853304.html

 

posted @ 2020-05-18 10:55  土豆吖  阅读(1402)  评论(0编辑  收藏  举报