[英]Trying to Open Jupyter Notebook from Terminal constantly getting error of zsh: command not found: jupyter: Python Version: 2.7.16
I updated my Mac OS from High Sierra to Catalina我将我的 Mac OS 从 High Sierra 更新到 Catalina
I asked this question before, someone suggested me this syntax: python3 -m pip install jupyter我之前问过这个问题,有人建议我这个语法:python3 -m pip install jupyter
When I tried this syntax it worked for the 1st time.当我尝试这种语法时,它第一次起作用。 After then when I completed my work and saved my file and exited Jupyter Notebook from the terminal.
之后,当我完成工作并保存文件并从终端退出 Jupyter Notebook 时。
When I tried to open Jupyter Notebook from my Mac Terminal the 2nd time by just writing % jupyter notebook
onto the terminal, it gave me an error: zsh: command not found: jupyter
当我第二次尝试通过在终端上写入
% jupyter notebook
来从我的 Mac 终端打开 Jupyter Notebook 时,它给了我一个错误: zsh: command not found: jupyter
Tried all the different approaches online, but I am not able to fix this issue.在线尝试了所有不同的方法,但我无法解决此问题。
Can anyone guide me on how I can fix this problem?谁能指导我如何解决这个问题?
Try pip3 install jupyter
and then you should be able to run jupyter notebook
form the terminal.尝试
pip3 install jupyter
然后你应该能够从终端运行jupyter notebook
。 As far as what caused the issue its hard to say it could be a variety of issues especially with the OSX update.至于是什么导致了这个问题,很难说它可能是各种各样的问题,尤其是 OSX 更新。 I'm guessing though that it stems from the initial install by
python3 -m pip install jupyter
.我猜它源于
python3 -m pip install jupyter
的初始安装。 I always install using pip
or pip3
as I said above which will install it globally如上所述,我总是使用
pip
或pip3
进行安装,这将在全球范围内安装
Execute pip3 show jupyter
.执行
pip3 show jupyter
。 This will show you where pip has installed Jupyter.这将显示 pip 安装 Jupyter 的位置。 Afterwards, you can execute
jupyter notebook
from that directory.之后,您可以从该目录执行
jupyter notebook
。
No need to install anything or copy paste any code.无需安装任何东西或复制粘贴任何代码。 Simply run the below code in your terminal after changing the user name "sudhanshukumar" to your Mac user name
将用户名“sudhanshukumar”更改为您的 Mac 用户名后,只需在终端中运行以下代码
/Users/sudhanshukumar/opt/anaconda3/bin/jupyter_mac.command
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.