用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
用pip安装jupyter后,终端仍然找不到jupyter笔记本。
Ubuntu只是说命令没有找到。与ipython类似。pip没有安装好还是怎么了?Ubuntu如何知道在哪里寻找安装了pip的可执行文件?
当前回答
为了能够从终端运行jupyter notebook,您需要确保~/。Local /bin在您的路径中。
通过执行export PATH=$PATH:~/来实现。当前会话的本地/bin,或者将该行添加到~/的末尾。Bashrc使您的更改在以后的会话中持续(例如使用nano ~/. Bashrc)。如果您编辑~/。Bashrc,您将需要登出并重新登录,以查看您的更改生效。
其他回答
Try
Python -m notebook
或者,如果您使用pip3安装笔记本:
Python3 -m笔记本
在Mac OS Catalina和Python3.7上
在Mac OS上,您需要导出~/。在$PATH变量中使用local/bin。
# Edit the bash profile:
$ vim ~/.bash_profile
# Add this line inside ~/.bash_profile:
export PATH=$PATH:~/.local/bin
# Update the source:
$ source ~/.bash_profile
# Open Jupyter:
$ jupyter notebook
在MacOs上,这对我来说很管用:
/Users/`userName`/opt/anaconda3/bin/jupyter_mac.command
在Ubuntu上安装Jupyter Notebook之后,我得到了以下错误:
异常:Jupyter命令' Jupyter -notebook'未找到。
我使用简单的命令,它为我工作
PIP install——upgrade——force-重装——no-cache-dir jupyter
来源:http://commandstech.com/how-to-install-jupyter-on-ubuntu16-04-with-pictures-commands-errors-solution/
从root用户退出后执行:
朱皮特笔记本
用conda重新安装jupyter:
conda install jupyter