安装jupyter后,使用时显示找不到命令(command not found)

版权声明:如需转载注明出处 https://blog.csdn.net/u011463794/article/details/83017138

原因很简单

详见这篇帖子找不到命令原因


解决方法

首先打开终端,找到jupyter是否存在
在这里插入图片描述

发现了jupyter位置,注意bin文件是存放命令的,所以我们把它添加到环境变量

sudo vim /etc/profile
添加如下代码
export PATH=$PATH:~/.local/bin
退出编辑
source  /etc/profile//执行配置

在这里插入图片描述

大功告成

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/u011463794/article/details/83017138