简体   繁体   English

无法在Linux(Ubuntu)中启动Jupyter Notebook

[英]Can't start Jupyter Notebook in Linux (Ubuntu)

It says it installed Jupyter Notebook correctly, but when I launch it I get the error in the image: 它说它正确安装了Jupyter Notebook,但是当我启动它时,在图像中出现错误: 在此处输入图片说明

The installation I used was: pip 我使用的安装是:pip

sudo apt-get install python3-pip

Then Pandas 然后是熊猫

sudo pip3 install pandas

then Jupyter notebook 然后是Jupyter笔记本

sudo pip3 install Jupyter

Does it have anything to do with the version of Python (3 vs 2)? 它与Python版本(3对2)有什么关系吗? How do I get Jupyter Notebook to start? 如何启动Jupyter Notebook?

I had similar problems firing jupyter notebook on Ubuntu 18.4.x 在Ubuntu 18.4.x上启动jupyter笔记本时,我遇到了类似的问题

Since jupyter notebook in itself requires another installation we need to install it. 由于jupyter笔记本电脑本身需要其他安装,因此我们需要安装它。 So I used this command and it worked please try and see if it works for you 因此,我使用了此命令,它起作用了,请尝试看看它是否对您有用

@user-VirtualBox:~$ sudo apt install jupyter-notebook @ user-VirtualBox:〜$ sudo apt安装jupyter-notebook

It will ask for any password if you have set for Ubuntu once you enter this you should see 输入密码后,它将询问您是否已为Ubuntu设置密码。

Reading package lists.. Done 正在阅读包装清单。.完成

Building dependency tree 建立依赖树

... ...

... ...

etc 等等

Once installation completed, type at prompt 安装完成后,在提示符下键入

@user-VirtualBox:~$ jupyter-notebook @ user-VirtualBox:〜$ jupyter-笔记本

You'll notice that jupyter's notebook system will automatically open Mozilla Firefox and it's ready go. 您会注意到jupyter的笔记本系统将自动打开Mozilla Firefox,并且已经准备就绪。

Let me know how it works. 让我知道它是如何工作的。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM