解决 docker 中 zsh: command not found: jupyterlab 问题

su: Authentication failure 问题

执行 sudo passwd root 设置密码,再次执行 su 即可切换到 root;

zsh: command not found: jupyterlab 问题

  1. 安装 jupyterlab:
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --user jupyter jupyterlab
    
  2. 查看 jupyterlab 路径:
    [dreamhomes@smj-docker] ~ pip show jupyterlab
    Name: jupyterlab
    Version: 2.1.4
    Summary: The JupyterLab notebook server extension.
    Home-page: http://jupyter.org
    Author: Jupyter Development Team
    Author-email: [email protected]
    License: BSD
    Location: /home/dreamhomes/.local/lib/python3.7/site-packages
    Requires: jinja2, jupyterlab-server, notebook, tornado
    Required-by:
    
  3. ~/.zshrc 增加Location路径export PATH=~/.local/bin/:$PATH

再次执行jupyter lab --ip 0.0.0.0 即可运行!

conda install 权限问题

进入anaconda 安装目录:

sudo chmod -R 777 conda

再次执行conda install安装即可。

你可能感兴趣的:(ubuntu)