Jupyter Notebook不能在系统命令行里全局启动

Anaconda安装好Juypyter Notebook之后,只能在base环境里启动,在系统的命令行里要全局启动Jupyter NoteBook失败了

C:\Users\HP>jupyter notebook
Traceback (most recent call last):
  File "D:\Anaconda3\Scripts\jupyter-notebook-script.py", line 6, in 
    from notebook.notebookapp import main
  File "D:\Anaconda3\lib\site-packages\notebook\notebookapp.py", line 46, in 
    from zmq.eventloop import ioloop
  File "D:\Anaconda3\lib\site-packages\zmq\__init__.py", line 47, in 
    from zmq import backend
  File "D:\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 40, in 
    reraise(*exc_info)
  File "D:\Anaconda3\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
    raise value
  File "D:\Anaconda3\lib\site-packages\zmq\backend\__init__.py", line 27, in 
    _ns = select_backend(first)
  File "D:\Anaconda3\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "D:\Anaconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in 
    from . import (constants, error, message, context,
ImportError: DLL load failed: The specified module could not be found.

亲测有效的方法是

D:\Anaconda\Library\mingw-w64\bin
D:\Anaconda\Library\bin

将Anaconda下的这两个目录添加到系统的环境变量里

转载于:https://www.cnblogs.com/MartinLwx/p/10521046.html

你可能感兴趣的:(Jupyter Notebook不能在系统命令行里全局启动)