欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jupyterlab无法启动报错/usr/bin/python: bad interpreter: No such file or directory

程序员文章站 2022-05-27 22:07:18
...

问题描述

今天启动jupyter lab时报错

/home/jxqi/.local/bin/jupyter: /usr/bin/python: bad interpreter: No such file or directory

但在python中import jupyterlab是正常的,尝试了pip uninstall jupyterlab再重装后还是同样的错误。最后参考了这篇博客启动jupyter报错 zsh: /usr/local/bin/jupyter: bad interpreter: /usr/local/opt/python/bin/python3.7后解决了问题。

问题解决

首先需要删除掉:之前的那个文件,我这里是/home/jxqi/.local/bin/jupyter,然后再pip uninstall后重装即可。

rm /home/jxqi/.local/bin/jupyter
pip uninstall jupyterlab
pip install jupyterlab