我正在尝试在Windows上安装Jupyter Notebook而不安装Anaconda。我已经遵循了https://jupyter.org/install中的步骤,但似乎不起作用。我尝试关闭并重新打开命令提示符并重新启动Windows,但也不起作用。我错过了什么?
C:\Users\xxxxxx>pip install notebook
Requirement already satisfied: notebook in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (6.5.4)
Requirement already satisfied: jinja2 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (3.1.2)
Requirement already satisfied: tornado>=6.1 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from notebook) (6.2)
Requirement already satisfied: pyzmq>=17 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from notebook) (25.0.2)
Requirement already satisfied: argon2-cffi in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (21.3.0)
Requirement already satisfied: traitlets>=4.2.1 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from notebook) (5.9.0)
Requirement already satisfied: jupyter-core>=4.6.1 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from notebook) (5.3.0)
Requirement already satisfied: jupyter-client>=5.3.4 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from notebook) (8.1.0)
Requirement already satisfied: ipython-genutils in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (0.2.0)
Requirement already satisfied: nbformat in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (5.8.0)
Requirement already satisfied: nbconvert>=5 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (7.3.1)
Requirement already satisfied: nest-asyncio>=1.5 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from notebook) (1.5.6)
Requirement already satisfied: ipykernel in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from notebook) (6.22.0)
Requirement already satisfied: Send2Trash>=1.8.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (1.8.0)
Requirement already satisfied: terminado>=0.8.3 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (0.17.1)
Requirement already satisfied: prometheus-client in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (0.16.0)
Requirement already satisfied: nbclassic>=0.4.7 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from notebook) (0.5.5)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-client>=5.3.4->notebook) (2.8.2)
Requirement already satisfied: platformdirs>=2.5 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from jupyter-core>=4.6.1->notebook) (3.1.1)
Requirement already satisfied: pywin32>=300 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from jupyter-core>=4.6.1->notebook) (305)
Requirement already satisfied: jupyter-server>=1.8 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbclassic>=0.4.7->notebook) (2.5.0)
Requirement already satisfied: notebook-shim>=0.1.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbclassic>=0.4.7->notebook) (0.2.3)
Requirement already satisfied: beautifulsoup4 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (4.11.2)
Requirement already satisfied: bleach in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (6.0.0)
Requirement already satisfied: defusedxml in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (0.7.1)
Requirement already satisfied: jupyterlab-pygments in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (0.2.2)
Requirement already satisfied: markupsafe>=2.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (2.1.2)
Requirement already satisfied: mistune<3,>=2.0.3 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (2.0.5)
Requirement already satisfied: nbclient>=0.5.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (0.7.4)
Requirement already satisfied: packaging in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (21.3)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (1.5.0)
Requirement already satisfied: pygments>=2.4.1 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from nbconvert>=5->notebook) (2.14.0)
Requirement already satisfied: tinycss2 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbconvert>=5->notebook) (1.2.1)
Requirement already satisfied: fastjsonschema in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbformat->notebook) (2.16.3)
Requirement already satisfied: jsonschema>=2.6 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from nbformat->notebook) (4.17.3)
Requirement already satisfied: pywinpty>=1.1.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from terminado>=0.8.3->notebook) (2.0.10)
Requirement already satisfied: argon2-cffi-bindings in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from argon2-cffi->notebook) (21.2.0)
Requirement already satisfied: comm>=0.1.1 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipykernel->notebook) (0.1.2)
Requirement already satisfied: debugpy>=1.6.5 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipykernel->notebook) (1.6.6)
Requirement already satisfied: ipython>=7.23.1 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipykernel->notebook) (8.11.0)
Requirement already satisfied: matplotlib-inline>=0.1 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipykernel->notebook) (0.1.6)
Requirement already satisfied: psutil in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipykernel->notebook) (5.9.4)
Requirement already satisfied: backcall in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipython>=7.23.1->ipykernel->notebook) (0.2.0)
Requirement already satisfied: decorator in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from ipython>=7.23.1->ipykernel->notebook) (5.1.1)
Requirement already satisfied: jedi>=0.16 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipython>=7.23.1->ipykernel->notebook) (0.18.2)
Requirement already satisfied: pickleshare in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipython>=7.23.1->ipykernel->notebook) (0.7.5)
Requirement already satisfied: prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipython>=7.23.1->ipykernel->notebook) (3.0.38)
Requirement already satisfied: stack-data in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from ipython>=7.23.1->ipykernel->notebook) (0.6.2)
Requirement already satisfied: colorama in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from ipython>=7.23.1->ipykernel->notebook) (0.4.5)
Requirement already satisfied: attrs>=17.4.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (22.1.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (0.19.3)
Requirement already satisfied: anyio>=3.1.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (3.6.2)
Requirement already satisfied: jupyter-events>=0.4.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (0.6.3)
Requirement already satisfied: jupyter-server-terminals in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (0.4.4)
Requirement already satisfied: websocket-client in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (1.5.1)
Requirement already satisfied: six>=1.5 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.8.2->jupyter-client>=5.3.4->notebook) (1.16.0)
Requirement already satisfied: cffi>=1.0.1 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from argon2-cffi-bindings->argon2-cffi->notebook) (1.15.1)
Requirement already satisfied: soupsieve>1.2 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from beautifulsoup4->nbconvert>=5->notebook) (2.4)
Requirement already satisfied: webencodings in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from bleach->nbconvert>=5->notebook) (0.5.1)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from packaging->nbconvert>=5->notebook) (3.0.9)
Requirement already satisfied: idna>=2.8 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from anyio>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (3.4)
Requirement already satisfied: sniffio>=1.1 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from anyio>=3.1.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (1.3.0)
Requirement already satisfied: pycparser in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->notebook) (2.21)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->notebook) (0.8.3)
Requirement already satisfied: python-json-logger>=2.0.4 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-events>=0.4.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (2.0.7)
Requirement already satisfied: pyyaml>=5.3 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-events>=0.4.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (6.0)
Requirement already satisfied: rfc3339-validator in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-events>=0.4.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (0.1.4)
Requirement already satisfied: rfc3986-validator>=0.1.1 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jupyter-events>=0.4.0->jupyter-server>=1.8->nbclassic>=0.4.7->notebook) (0.1.1)
Requirement already satisfied: wcwidth in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30->ipython>=7.23.1->ipykernel->notebook) (0.2.6)
Requirement already satisfied: executing>=1.2.0 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from stack-data->ipython>=7.23.1->ipykernel->notebook) (1.2.0)
Requirement already satisfied: asttokens>=2.1.0 in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from stack-data->ipython>=7.23.1->ipykernel->notebook) (2.2.1)
Requirement already satisfied: pure-eval in c:\users\xxxxxx\appdata\roaming\python\python310\site-packages (from stack-data->ipython>=7.23.1->ipykernel->notebook) (0.2.2)
Requirement already satisfied: fqdn in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (1.5.1)
Requirement already satisfied: isoduration in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (20.11.0)
Requirement already satisfied: jsonpointer>1.13 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (2.3)
Requirement already satisfied: uri-template in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (1.2.0)
Requirement already satisfied: webcolors>=1.11 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from jsonschema>=2.6->nbformat->notebook) (1.13)
Requirement already satisfied: arrow>=0.15.0 in c:\users\xxxxxx\appdata\local\programs\python\python310\lib\site-packages (from isoduration->jsonschema>=2.6->nbformat->notebook) (1.2.3)
C:\Users\xxxxxx>jupyter notebook
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
字符串
4条答案
按热度按时间gg0vcinb1#
您应该将
<your_python_root>\Scripts
添加到PATH
环境变量中。(转到Environmental Variables > system variable > Path > Edit
)。然后系统知道在哪里找到
jupyter
命令。7hiiyaii2#
一种方法是使用
venv
为jupyter创建一个虚拟环境:字符串
激活它:
型
安装并运行:
型
这不是简单的一行程序,但它比安装anaconda简单得多。
gt0wga4j3#
我猜你会遇到这样的情况,Python是在系统范围内安装的,而Jupyer是在本地安装的。
如果是这样(也许我错了),那么事情就是这样。当我们在Windows中安装Python时,它通常会添加3个环境路径,在系统级安装中可能看起来像这样:
字符串
jupyter.exe
在全局安装时,最终会出现在...\Python310\Scripts
中,而...\Python310\Scripts
已经存在于PATH
中,因此我们希望shell能够看到它。但是 * 本地安装的软件包 * 可能不在预定义的搜索路径中。所以我们需要手动添加一个额外的。在本例中,看起来您必须向
PATH
添加以下行:型
我们可以在shell在其配置文件中启动时执行此操作,也可以编辑 * 个人帐户 * 的环境变量(而不是 * 系统变量 *,只要我们添加一个路径到我们的私有目录)。
我认为后一种选择更好,因为它不依赖于运行
jupyter
的shell。所以我会按Win+I运行 Windows Settings,在搜索栏中输入env
,选择Edit variables for account
,然后添加一个路径:的数据
daolsyd04#
将
<Python root>/Scripts
添加到PATH
环境变量。或者,如果你不想编辑你的环境变量,你可以用以下命令运行Jupyter Notebook:
字符串