Jupyter command `jupyter-lab` not found. 问题解决

Jupyter command `jupyter-lab` not found. 问题解决

      • 1.问题描述
      • 2.可尝试解决方法
      • 3.最终成功的方法
        • 1.卸载jupyter
        • 2.一 一卸载它们,全部卸载完毕
        • 3.安装python包

1.问题描述

C:\Users\Bubble> jupyter lab
Traceback (most recent call last):
  File "d:\program files (x86)\python38-32\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "d:\program files (x86)\python38-32\lib\runpy.py", line 87, in _run_code
    exec(code, run_glob`在这里插入代码片`als)
  File "D:\Program Files (x86)\Python38-32\Scripts\jupyter.exe\__main__.py", line 7, in <module>
  File "d:\program files (x86)\python38-32\lib\site-packages\jupyter_core\command.py", line 285, in main
    command = _jupyter_abspath(subcommand)
  File "d:\program files (x86)\python38-32\lib\site-packages\jupyter_core\command.py", line 124, in _jupyter_abspath
    raise Exception(
Exception: Jupyter command `jupyter-lab` not found.

2.可尝试解决方法

  • 1.添加jupyter lab所在文件夹到Path
    请看这位同学的Path方法

  • 2.升级jupyter-lab

  • 3.重装jupyter-lab(使用命令)

3.最终成功的方法

1.卸载jupyter

  • 1.1 先试下这个
    先试一下这个链接的方法.
  • 1.2 检查下是不是还残留jupyter的包,如下图圈红处。
    pip list
    
    Jupyter command `jupyter-lab` not found. 问题解决_第1张图片

2.一 一卸载它们,全部卸载完毕

```python
pip uninstall -y jupyter
pip uninstall -y jupyter-client
```

3.安装python包

pip install jupyterlab

你可能感兴趣的:(python小白)