无法运行Jupyter Notebook Ubuntu 18.04.4 LTS

时间:2020-03-28 04:38:45

标签: python jupyter-notebook jupyter

~$ jupyter notebook
Traceback (most recent call last):
  File "/home/mannya/.local/bin/jupyter", line 8, in <module>
    sys.exit(main())
  File "/home/mannya/.local/lib/python3.6/site-packages/jupyter_core/command.py", line 247, in main
    command = _jupyter_abspath(subcommand)
  File "/home/mannya/.local/lib/python3.6/site-packages/jupyter_core/command.py", line 134, in _jupyter_abspath
    'Jupyter command `{}` not found.'.format(jupyter_subcommand)
Exception: Jupyter command `jupyter-notebook` not found.

当我运行“哪个jupyter”命令时

 ~$ which jupyter
/home/mannya/.local/bin/jupyter

我得到这个结果。

我所做的是我试图在虚拟环境中安装jupyter笔记本。之后,我的笔记本停止工作。 我试图卸载它,但笔记本电脑并未从系统中完全删除。 我尝试使用这些命令将其卸载

sudo apt remove jupyter-notebook
sudo apt purge jupyter-notebook
sudo apt clean
sudo apt autoremove
sudo apt -f install
sudo apt update

即使我尝试了pip uninstall notebook 不工作。 我还是得到

 ~$ which jupyter
/home/mannya/.local/bin/jupyter

尝试使用pip install notebook重新安装 我正在

Requirement already satisfied

也请看看这个。

File "/home/mannya/.local/lib/python3.6/site-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
ModuleNotFoundError: No module named 'IPython'
[W 10:10:14.001 NotebookApp] KernelRestarter: restart failed
[W 10:10:14.001 NotebookApp] Kernel 5b544ebd-0fcc-40c6-a99e-4272de5f2a5b died, removing from map.

0 个答案:

没有答案