【问题标题】:After Installing Oh My Zsh on Ubuntu: Error executing Jupyter command 'lab': [Errno 2] No such file or directory在 Ubuntu 上安装 Oh My Zsh 后:执行 Jupyter 命令“实验室”时出错:[Errno 2] 没有这样的文件或目录
【发布时间】:2021-09-01 01:15:56
【问题描述】:

安装Anacondajupyterlab 后,默认Ubuntu 终端上的命令jupyter lab 在浏览器上完美启动Jupyter Lab。安装Oh My Zsh后,遇到如下问题。可能是一个简单的修复,但我似乎找不到适用于 Ubuntu 16 的解决方案。

  1. Jupyter notebook 似乎工作正常,但 Jupyter lab 不工作。

    ❯ jupyter lab                                                                
    Error executing Jupyter command 'lab': [Errno 2] No such file or directory
    

  2. Anaconda 也无法正常工作。

    ❯ conda --version
    zsh: command not found: conda
    
  3. 我担心其他东西不能正常工作。一般修复会更有帮助。

非常感谢。

【问题讨论】:

    标签: python ubuntu-16.04 jupyter-lab oh-my-zsh


    【解决方案1】:

    在您的“.zhrc”文件中尝试添加一行以获取“.bash_profile”。

    步骤:

    1. 在终端输入 vim ~/.zshrc
    2. 将源 ~/.bash_profile 添加到 .zshrc 文件中
    3. 最后在终端输入source ~/.zshrc

    【讨论】:

      猜你喜欢
      • 2018-09-30
      • 2018-02-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-27
      相关资源
      最近更新 更多