ubuntu中Jupyter notebook报错:jupyter: command not found
程序员文章站
2022-05-29 09:13:14
...
Jupyter notebook是基于ipython的一个网页版的代码编译器,很方面,整合了markdown,非常适合用来学习python。
安装方法:
使用pip3安装jupyter
pip3 install jupyter
这时候在终端输入jupyter notebook就会报jupyter: command not found
的错误,原因是没有配置环境变量,在终端输入~/.local/bin/jupyter-notebook
可以使用,但是关闭此终端再打开时还是会报错。
修改环境变量:
在~/.bashrc文件中添加jupyter notebook的路径
终端运行sudo vim ~/.bashrc
然后添加下面内容:
export PATH=~/.local/bin:${PATH}
保存~/.bashrc文件后,并在终端输入source ~/.bashrc
下载就可以使用juypter notebook了。
推荐阅读
-
ubuntu安装jupyter—zsh: command not found: jupyter
-
Jupyter notebook安装扩展工具(nbextensions)提示“Jupyter command `jupyter-contrib` not found.”
-
ubuntu中Jupyter notebook报错:jupyter: command not found
-
Mac Jupyter notebook代码补全(解决-bash: ipython: command not found)
-
Ubuntu16.04下使用jupyter notebook报错“ImportError: no module named xxx”
-
virtualenv中运行的jupyter notebook,在import pandas时报错,ImportError: No module named 'pandas'
-
zsh 中进入 tmux 后启动 jupyter lab 报错:zsh:command not found:jupyter
-
Jupyter notebook安装扩展工具(nbextensions)提示“Jupyter command `jupyter-contrib` not found.”
-
Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2
-
由jupter notebook:Error executing Jupyter command ‘notebook‘: [Errno ‘jupyter-notebook‘ not found]的思考