【问题标题】:Can't run Jupyter Notebook within Python environment on Ubuntu无法在 Ubuntu 的 Python 环境中运行 Jupyter Notebook
【发布时间】:2020-03-13 15:45:40
【问题描述】:

我已经安装了 Anaconda 并创建了一个名为 Python3 的虚拟 Python3 环境。在激活环境之前,我可以运行 jupyter notebook 并打开 Jupyter。但是如果我激活环境然后运行:

$source activate Python3
$jupyter notebook

我会收到一个No such file or directory 错误,它指示我使用sudo apt install jupyter。我这样做了,但现在我得到了:

Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

我是否必须执行一些 PATH 技巧才能完成这项工作?

【问题讨论】:

标签: python ubuntu jupyter-notebook anaconda


【解决方案1】:

我遇到了类似的问题。这是我为解决问题所做的(在 Ubuntu 上):

sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter

ipython 似乎是问题所在,因此删除它解决了问题。

【讨论】:

  • 您是否尝试过使用Anacondaminiconda 运行Jupyter
猜你喜欢
  • 2023-03-16
  • 1970-01-01
  • 2018-08-24
  • 2019-06-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-10-19
相关资源
最近更新 更多