[英]Can't run Jupyter Notebook within Python environment on Ubuntu
I've installed both Anaconda and created a virtual Python3 environment called Python3
.我已经安装了 Anaconda 并创建了一个名为
Python3
的虚拟 Python3 环境。 Before I activate the environment, I can run jupyter notebook
and open Jupyter.在我激活环境之前,我可以运行
jupyter notebook
并打开 Jupyter。 But if I activate the environment and then run:但是如果我激活环境然后运行:
$source activate Python3
$jupyter notebook
I would get a No such file or directory
error, which directed me to using sudo apt install jupyter
.我会得到一个
No such file or directory
错误,它指示我使用sudo apt install jupyter
。 I did that, but now I get:我这样做了,但现在我得到:
Error executing Jupyter command 'notebook': [Errno 2] No such file or directory
Do I have to perform some PATH trick to make this work?我是否必须执行一些 PATH 技巧才能完成这项工作?
I faced similar issue.我遇到了类似的问题。 This is what I did to fix the issue (on Ubuntu ) :
这就是我为解决这个问题所做的(在Ubuntu 上):
sudo apt-get remove ipython
sudo apt-get purge ipython
sudo apt-get autoremove
pip install jupyter
ipython seemed to be the problem, hence removing it fixed the issue. ipython似乎是问题所在,因此删除它可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.