網頁

2018年5月3日 星期四

jupyter notebook

jupyter notebook 出錯

(tensorflow) D:\TensorFlow>jupyter notebook
Traceback (most recent call last):
  File "d:\anaconda3\envs\tensorflow\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "d:\anaconda3\envs\tensorflow\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\Anaconda3\envs\tensorflow\Scripts\jupyter-notebook.EXE\__main__.py", line 5, in <module>
  File "d:\anaconda3\envs\tensorflow\lib\site-packages\notebook\notebookapp.py", line 44, in <module>
    from zmq.eventloop import ioloop
  File "d:\anaconda3\envs\tensorflow\lib\site-packages\zmq\__init__.py", line 47, in <module>
    from zmq import backend
  File "d:\anaconda3\envs\tensorflow\lib\site-packages\zmq\backend\__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "d:\anaconda3\envs\tensorflow\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "d:\anaconda3\envs\tensorflow\lib\site-packages\zmq\backend\__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "d:\anaconda3\envs\tensorflow\lib\site-packages\zmq\backend\select.py", line 26, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "d:\anaconda3\envs\tensorflow\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
ImportError: cannot import name 'constants'

重新安裝 pyzmq 可以解決
pip uninstall pyzmq
pip install pyzmq




1 則留言: