我安装了Jupyter Notebook,它报告要求已满足,但是当我尝试运行时,它会报告' jupyter'不被视为内部或外部命令。
我猜我错过了路径定义,但无法找到jupyter.exe。
我看到stackoverflow上的其他帖子说根据安装说明设置python库路径,但是我搜索了jupyter安装并没有找到对它的引用。
有什么建议吗?
顺便说一句,用Python完成新手。c:\Users\john_\Documents>python -m pip install jupyter
Requirement already satisfied: jupyter in c:\users\john_\appdata\roaming\python\python36\site-packages
Requirement already satisfied: qtconsole in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: notebook in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: nbconvert in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: ipykernel in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: jupyter-console in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: ipywidgets in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter)
Requirement already satisfied: jupyter-client>=4.1 in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: ipython-genutils in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: jupyter-core in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: traitlets in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: pygments in c:\users\john_\appdata\roaming\python\python36\site-packages (from qtconsole->jupyter)
Requirement already satisfied: nbformat in c:\users\john_\appdata\roaming\python\python36\site-packages (from notebook->jupyter)
Requirement already satisfied: jinja2 in c:\users\john_\appdata\roaming\python\python36\site-packages (from notebook->jupyter)
Requirement already satisfied: tornado>=4 in c:\users\john_\appdata\roaming\python\python36\site-packages (from notebook->jupyter)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: entrypoints>=0.2.2 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: bleach in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from nbconvert->jupyter)
Requirement already satisfied: mistune>=0.7.4 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: testpath in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbconvert->jupyter)
Requirement already satisfied: ipython>=4.0.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipykernel->jupyter)
Requirement already satisfied: prompt-toolkit<2.0.0,>=1.0.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter-console->jupyter)
Requirement already satisfied: widgetsnbextension~=3.0.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipywidgets->jupyter)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter-client>=4.1->qtconsole->jupyter)
Requirement already satisfied: pyzmq>=13 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jupyter-client>=4.1->qtconsole->jupyter)
Requirement already satisfied: decorator in c:\users\john_\appdata\roaming\python\python36\site-packages (from traitlets->qtconsole->jupyter)
Requirement already satisfied: six in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from traitlets->qtconsole->jupyter)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in c:\users\john_\appdata\roaming\python\python36\site-packages (from nbformat->notebook->jupyter)
Requirement already satisfied: MarkupSafe>=0.23 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jinja2->notebook->jupyter)
Requirement already satisfied: html5lib!=0.9999,!=0.99999,<0.99999999,>=0.999 in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from bleach->nbconvert->jupyter)
Requirement already satisfied: simplegeneric>0.8 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: setuptools>=18.5 in c:\program files (x86)\microsoft visual studio\shared\python36_64\lib\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: jedi>=0.10 in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: colorama; sys_platform == "win32" in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: pickleshare in c:\users\john_\appdata\roaming\python\python36\site-packages (from ipython>=4.0.0->ipykernel->jupyter)
Requirement already satisfied: wcwidth in c:\users\john_\appdata\roaming\python\python36\site-packages (from prompt-toolkit<2.0.0,>=1.0.0->jupyter-console->jupyter)
Requirement already satisfied: parso==0.1.0 in c:\users\john_\appdata\roaming\python\python36\site-packages (from jedi>=0.10->ipython>=4.0.0->ipykernel->jupyter)
当我尝试运行jupyter时出现错误
c:\Users\john_\Documents>jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
这里我展示了python的安装并且可以运行
c:\Users\john_\Documents>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
答案 0 :(得分:2)
检查python安装文件夹中的scripts文件夹中是否有一个名为jupyter的exe文件。如果是,则将脚本文件夹添加到路径中。 我建议你使用anaconda分发的python。它将照顾一切。