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
推荐阅读
-
bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
-
bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
-
bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
-
window下编写python脚本在linux下运行出错 usr/bin/python^M: bad interpreter: No such file or directory
-
jupyterlab无法启动报错/usr/bin/python: bad interpreter: No such file or directory
-
window下编写python脚本在linux下运行出错 usr/bin/python^M: bad interpreter: No such file or directory
-
bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory