Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/280.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Jupyter笔记本错误_Python_Ipython_Anaconda_Jupyter - Fatal编程技术网

Python Jupyter笔记本错误

Python Jupyter笔记本错误,python,ipython,anaconda,jupyter,Python,Ipython,Anaconda,Jupyter,我无法在浏览器中运行笔记本。它没有出现。控制台显示以下错误。我安装了水蟒。任何帮助都将不胜感激。谢谢 C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\Cython\Distutils\old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecat

我无法在浏览器中运行笔记本。它没有出现。控制台显示以下错误。我安装了水蟒。任何帮助都将不胜感激。谢谢

 C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\Cython\Distutils\old_build_ext.py:30: UserWarning: Cython.Distutils.old_build_ext does not properly handle dependencies and is deprecated.
  "Cython.Distutils.old_build_ext does not properly handle dependencies "
_cffi_ext.c
AppData\Roaming\Python\Python35\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(209): fatal error C1083: Cannot open include file: 'sys/un.h': No such file or directory
Traceback (most recent call last):
  File "C:\Users\Myamoto\Anaconda3\Scripts\jupyter-notebook-script.py", line 3, in <module>
    import notebook.notebookapp
  File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\notebook\notebookapp.py", line 32, in <module>
    from zmq.eventloop import ioloop
  File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\__init__.py", line 34, in <module>
    from zmq import backend
  File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\select.py", line 26, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "C:\Users\Myamoto\AppData\Roaming\Python\Python35\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
ImportError: cannot import name 'constants'
C:\Users\Myamoto\AppData\Roaming\Python\Python35\site packages\Cython\Distutils\old\u build\u ext.py:30:UserWarning:Cython.Distutils.old\u build\u ext无法正确处理依赖项,已被弃用。
“Cython.Distutils.old\u build\u ext无法正确处理依赖项”
_cffi_分机c
AppData\Roaming\Python\Python35\site packages\zmq\backend\cffi\\ uuuuuuu pycache\\ uuuuuu cffi\\ uext.c(209):致命错误C1083:无法打开包含文件:“sys/un.h”:没有此类文件或目录
回溯(最近一次呼叫最后一次):
文件“C:\Users\Myamoto\Anaconda3\Scripts\jupyter notebook script.py”,第3行,在
导入notebook.notebookapp
文件“C:\Users\Myamoto\AppData\Roaming\Python\Python35\site packages\notebook\notebookapp.py”,第32行,在
从zmq.eventloop导入ioloop
文件“C:\Users\Myamoto\AppData\Roaming\Python35\site packages\zmq\\uuuuu init\uuuuu.py”,第34行,在
从zmq导入后端
文件“C:\Users\Myamoto\AppData\Roaming\Python35\site packages\zmq\backend\\uuuuu init\uuuuu.py”,第40行,在
重新发布(*exc_信息)
文件“C:\Users\Myamoto\AppData\Roaming\Python35\site packages\zmq\utils\sixerpt.py”,第34行,在reraise中
增值
文件“C:\Users\Myamoto\AppData\Roaming\Python35\site packages\zmq\backend\\uuuuu init\uuuuu.py”,第27行,在
_ns=选择_后端(第一个)
文件“C:\Users\Myamoto\AppData\Roaming\Python35\site packages\zmq\backend\select.py”,第26行,在select\u backend中
mod=\uuuu导入(名称,fromlist=public\u api)
文件“C:\Users\Myamoto\AppData\Roaming\Python\35\site packages\zmq\backend\cython\\uuuu init\uuuu.py”,第6行,在
从…起导入(常量、错误、消息、上下文、,
ImportError:无法导入名称“常量”

我卸载了pyzmq并重新安装了它:

pip uninstall pyzmq 
pip install pyzmq
这对我有用


请注意,您可能还需要重新安装Jupyter笔记本电脑,以便与最新版本的Python兼容。

检查此Anaconda 2018.3在Windows 10下似乎非常不稳定。这对我很有效-链接的问题(建议的副本)没有。