外包 | mac 在 anaconda navigator 打不开 jupyter notebook

a. 问题: mac 在 anaconda navigator 打不开 jupyter notebook

错误提示: The file /Users/xxx/opt/anaconda3/bin/jupyter_mac.command does not exist.
重点在于: jupyter_mac.command does not exist

b. 解决:

  1. 访达 路径 /Users/xxx/opt/anaconda3/bin/
  2. 在这个路径下新建文件 jupyter_mac.command
  3. 文字编辑, 在这个文件里写入以下内容:
    DIR=$(dirname $0)
    
    $DIR/jupyter-notebook
    
  4. 打开终端, 输入以下命令, 跳转到路径:
    cd /Users/xxx/opt/anaconda3/bin/
    
  5. 在终端输入下列命令, 修改 jupyter_mac.command 的权限
    sudo chmod -R 777 ./jupyter_mac.command
    
    回车后, 要求输入密码, 此时密码不会显示, 输完后直接按回车就可以了
  6. 然后就解决了, 可以直接在 navigator 打开 jupyter notebook 了

猜你喜欢

转载自blog.csdn.net/JackyAce6880/article/details/128836014