python - Ubuntu 12.04 中的 Ipython3 笔记本

标签 python ubuntu ipython-notebook

我一直在 Ubuntu 12.04 LTS 中使用 Ipython notebook。我有最新版本的 Python 3,但我看到笔记本在旧版本的 Python 2 中运行。然后我通过命令 sudo apt-get install ipython3 安装了 ipython3并且在终端 ipython3 运行良好。但我看到 ipython notebook 没有默认安装。所以,当我输入 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.

任何解决方案如何在 Python 3 中安装 ipython 笔记本?

最佳答案

我遇到了同样的问题。

这似乎是由于包管理器必须在 ipython3 包的版本之间进行选择(反向移植和发布,例如 https://launchpad.net/ubuntu/precise/+package/ipython3 )

我通过指定版本解决了这个问题:

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

关于python - Ubuntu 12.04 中的 Ipython3 笔记本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23440327/

相关文章:

python - 从 sqlalchemy 中的元数据表中选择列

python - 尝试使用 azure-graphrbac 创建 Azure B2C 用户

python - ipython笔记本YouTubeVideo类可以从时间偏移播放吗

python - Ipython 笔记本 : Elegant way of turning off part of cells?

ipython-notebook - 在 ipython-notebook 中搜索词

python - 生成二维数组的所有唯一排列

python - 线宽与线的长度相加

ubuntu - 在 ubuntu 上,当我从终端运行 sublime text 时,它将打开两个实例

ubuntu - 使用 Ubuntu 16.04 的 VirtualBox 机器中的静态 IP

shell - 如何使用 shell 脚本切断所有子文件夹中文本文件中每一行的尾部?