简体   繁体   English

Ubuntu 12.04中的Ipython3笔记本

[英]Ipython3 notebook in Ubuntu 12.04

I have been using Ipython notebook in Ubuntu 12.04 LTS. 我一直在Ubuntu 12.04 LTS中使用Ipython Notebook。 I have the latest version of Python 3 but I see that notebook runs in older version of Python 2. Then I installed ipython3 by the command sudo apt-get install ipython3 and in the terminal ipython3 is running fine. 我拥有最新版本的Python 3,但是我看到笔记本可以在旧版本的Python 2中运行。然后我通过sudo apt-get install ipython3命令sudo apt-get install ipython3并且在终端ipython3上运行良好。 But I see that ipython notebook has not been installed default with this. 但是我看到没有为此默认安装ipython Notebook。 So, when I type sudo apt-get install ipython3-notebook in terminal it shows an error message like the following: 因此,当我在终端中键入sudo apt-get install ipython3-notebook ,它显示如下错误消息:

     ipython3-notebook : Depends: ipython3 (= 0.13.2-1~ubuntu12.04.1) but 0.12.1+dfsg-0ubuntu1 is to be  installed
     E: Unable to correct problems, you have held broken packages.

Any solution how to install ipython notebook in Python 3 ? 任何解决方案如何在Python 3中安装ipython Notebook?

I've encountered the same problem. 我遇到了同样的问题。

It' seems to be due to the fact the package manager have to choose between version of ipython3 packages (backports and release eg https://launchpad.net/ubuntu/precise/+package/ipython3 ) 这似乎是由于软件包管理器必须在ipython3软件包的版本之间进行选择(反向移植和发行,例如https://launchpad.net/ubuntu/precise/+package/ipython3 )。

I've solve the issue by specifying the version: 我已经通过指定版本解决了这个问题:

sudo apt-get install ipython3=0.13.2-1~ubuntu12.04.1
sudo apt-get install ipython3-notebook=0.13.2-1~ubuntu12.04.1

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

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