Python ';朱庇特';在Windows 10中不能识别为内部或外部命令、可操作程序或批处理文件
当我试图通过cmd访问jupyter时,它会在标题中给出错误行。 我使用的是Python3.8.5,通过pip使用Python ';朱庇特';在Windows 10中不能识别为内部或外部命令、可操作程序或批处理文件,python,jupyter-notebook,Python,Jupyter Notebook,当我试图通过cmd访问jupyter时,它会在标题中给出错误行。 我使用的是Python3.8.5,通过pip使用pip install jupyter命令安装了jupyter,它在cmd行中显示了以下消息 >pip install jupyter Requirement already satisfied: jupyter in c:\users\this pc\appdata\local\programs\python\python38\lib\site-packages (1.0.
pip install jupyter
命令安装了jupyter,它在cmd行中显示了以下消息
>pip install jupyter
Requirement already satisfied: jupyter in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (1.0.0)
Requirement already satisfied: jupyter-console in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (6.1.0)
Requirement already satisfied: notebook in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (6.1.3)
Requirement already satisfied: qtconsole in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (4.7.6)
Requirement already satisfied: ipywidgets in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (7.5.1)
Requirement already satisfied: ipykernel in c:\users\this pc\appdata\roaming\python\python38\site-
packages (from jupyter) (5.3.4)
Requirement already satisfied: nbconvert in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from jupyter) (5.6.1)
Requirement already satisfied: pygments in c:\users\this pc\appdata\roaming\python\python38\site-
packages (from jupyter-console->jupyter) (2.6.1)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\users\this
pc\appdata\roaming\python\python38\site-packages (from jupyter-console->jupyter) (3.0.6)
Requirement already satisfied: jupyter-client in c:\users\this
pc\appdata\roaming\python\python38\site-packages (from jupyter-console->jupyter) (6.1.6)
Requirement already satisfied: ipython in c:\users\this pc\appdata\roaming\python\python38\site-
packages (from jupyter-console->jupyter) (7.17.0)
Requirement already satisfied: Send2Trash in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (1.5.0)
Requirement already satisfied: nbformat in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (5.0.7)
Requirement already satisfied: pyzmq>=17 in c:\users\this pc\appdata\roaming\python\python38\site-
packages (from notebook->jupyter) (19.0.2)
Requirement already satisfied: terminado>=0.8.3 in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (0.8.3)
Requirement already satisfied: prometheus-client in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (0.8.0)
Requirement already satisfied: traitlets>=4.2.1 in c:\users\this
pc\appdata\roaming\python\python38\site-packages (from notebook->jupyter) (4.3.3)
Requirement already satisfied: argon2-cffi in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (20.1.0)
Requirement already satisfied: jinja2 in c:\users\this
pc\appdata\local\programs\python\python38\lib\site-packages (from notebook->jupyter) (2.11.2)
Requirement already satisfied: tornado>=5.0 in c:\users\this pc\appdata\roaming\python\python38\site-
packages (from notebook->jupyter) (6.0.4)
Requirement already satisfied: jupyter-core>=4.6.1 in c:\users\this
pc\appdata\roaming\python\python38\site-packages (from notebook->jupyter) (4.6.3)
...
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the 'c:\users\this
pc\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.
请注意
那我现在该怎么办呢?试着单独使用jupyter笔记本电脑。据我所知,python-m是用于引用模块的,它可能会导致问题。最终解决了它,我必须重新安装所有内容,并在环境变量中添加另一个路径选项,即
C:\Users\This PC\AppData\Roaming\Python\Python38\Scripts
上一个路径在本地文件夹中,而这个路径在Roaming文件夹中。
这对我来说很管用。也试过了……但同样的问题
Traceback (most recent call last):
File "c:\users\this pc\appdata\local\programs\python\python38\lib\runpy.py", line 194, in
_run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\this pc\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\This PC\AppData\Local\Programs\Python\Python38\Scripts\jupyter-
notebook.EXE\__main__.py", line 4, in <module>
File "c:\users\this pc\appdata\local\programs\python\python38\lib\site-
packages\notebook\notebookapp.py", line 51, in <module>
from zmq.eventloop import ioloop
File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\__init__.py", line 50, in
<module>
from zmq import backend
File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line
40, in <module>
reraise(*exc_info)
File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\utils\sixcerpt.py", line 34,
in reraise
raise value
File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\backend\__init__.py", line
27, in <module>
_ns = select_backend(first)
File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-packages\zmq\backend\select.py", line
28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\This PC\AppData\Roaming\Python\Python38\site-
packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython'
(most likely due to a circular import) (C:\Users\This PC\AppData\Roaming\Python\Python38\site-
packages\zmq\backend\cython\__init__.py)