安装图形工具 - ubunutu 14.04 - anaconda - jupyter notebook - python 2.7

Installing graph-tool - ubunutu 14.04 - anaconda - jupyter notebook - python 2.7

所以我一整天都在尝试在我的 Ubuntu 系统上安装图形工具模块。我似乎无法弄清楚。基本上我想在 jupyter notebook 中使用这个包(在 anaconda 环境中)。我遵循了几个安装说明,但似乎没有任何效果。

例如:https://gist.github.com/dlozeve/ed59bba8bc8cb9b21e2af36cc9766938

我进入配置(根据我使用的事实进行调整 python2.7),

./configure --prefix=/home/timo/anaconda2/envs/graph/ --with-python-module-path=/usr/local/lib/python2.7/site-packages

产量:

configure: error: *** A compiler with support for C++14 language features is required.

有谁知道我可能做错了什么?或者作为让图形工具在我的 jupyter notebook 中工作的更简单方法?

非常感谢!

configure 脚本确切地 告诉您出了什么问题:您需要一个支持 C++14 的编译器。这只是意味着您的 GCC 太旧了。

(您没有告诉我们任何相关细节,例如您拥有的编译器版本、库版本等,所以我们只能猜测。但幸运的是,configure 诊断是 crystal清楚。)

安装图形工具的更简单方法是升级您的发行版(14.04 已过时)并使用 Ubuntu 软件包,如下所述:https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#debian-ubuntu

由于 graph-tool 在 anaconda 环境中似乎 运行 并且 Ubuntu 14.04 不支持所需的最新 C++ 编译器,我确实安装了 Ubuntu 16.04然后首先按照 [https://www.google.de/amp/s/www.rosehosting.com/blog/how-to-install-jupyter-on-an-ubuntu-16-04-vps/amp/] 然后最后按照主页上的描述安装图形工具。

这样我就可以使用 jupyter notebook 并且仍然可以导入图形工具。