mac终端启动jupyter:command not found
原因是未在系统的环境变量中添加 jupyter的路径 /anaconda/bin 添加上即可
添加方法有多种,可以在 /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc 中进行添加配置,这几个的优先级逐渐递减,前两个是一个级别的对所有用户全局起作用,具体区别参考
https://www.cnblogs.com/shaoyu19900421/p/6241197.html
我用的在paths中进行添加,首先要切换用户到su,普通用户无权限修改,普通用户执行报错
切换到超级用户
sudo su
修改paths,添加路径进去
vim /etc/paths
添加完了ananconda 的 bin目录路径
执行
source /etc/paths
完成对路径的更新
再执行jupyter即可成功