无法通过PyCharm或Windows命令提示符

时间:2019-01-13 08:17:35

标签: python-3.x jupyter-notebook

我对python领域非常陌生,并试图让自己在jupyter笔记本上工作。
我有用于Jupyter笔记本电脑的Anaconda,但是,我想知道是否可以简单地使用PyCharm。但是这样做给了我以下错误。

Traceback (most recent call last):
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\kaust\AppData\Local\Programs\Python\Python37\Scripts\jupyter-kernelspec.EXE\__main__.py", line 5, in <module>
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\jupyter_client\__init__.py", line 4, in <module>
    from .connect import *
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\jupyter_client\connect.py", line 23, in <module>
    import zmq
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\zmq\__init__.py", line 47, in <module>
    from zmq import backend
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "c:\users\kaust\appdata\local\programs\python\python37\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
  File "zmq\backend\cython\message.pyx", line 56, in init zmq.backend.cython.message
ImportError: cannot import name _Event

我也曾尝试从Windows命令提示符运行它,但收到相同的错误。
我也尝试在两个平台上也更新所有软件包。

0 个答案:

没有答案