问题描述
- 在 conda 创建的虚拟环境中运行 jupyter lab 报错:
Traceback (most recent call last):
File "/Users/username/opt/anaconda3/envs/pytorch171py37/bin/jupyter", line 11, in <module>
sys.exit(main())
File "/Users/username/opt/anaconda3/envs/pytorch171py37/lib/python3.7/site-packages/jupyter_core/command.py", line 285, in main
command = _jupyter_abspath(subcommand)
File "/Users/username/opt/anaconda3/envs/pytorch171py37/lib/python3.7/site-packages/jupyter_core/command.py", line 125, in _jupyter_abspath
'Jupyter command `{
}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-lab` not found.
解决方法
python -m pip install jupyterlab
参考
- https://stackoverflow.com/questions/57677481/jupyter-command-jupyter-lab-not-found