所以我一直在尝试在我的Ubuntu系统上安装图形工具模块。我似乎无法弄明白。基本上我想在jupyter笔记本中使用这个包(在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笔记本中工作?
非常感谢!
答案 0 :(得分:0)
render () {
// act = this.refs.abc;
// alert(this.state.activeState)
// this.handleAutoPress();
return (
// <View style={styles.container}>
<View style={{flex:1, backgroundColor: '#f3f3f3'}} >
<Text>Component10 Component</Text>
{/*Rest of App come ABOVE the action button component!*/}
<ActionButton ref="abc" buttonColor="rgba(231,76,60,1)" >
{/*<ActionButton.Item buttonColor='#9b59b6' title="New Task" onPress={() =>
console.log("notes tapped!")}>
<Icon name="android-create" style={styles.actionButtonIcon} />
</ActionButton.Item>*/}
<ActionButton.Item buttonColor='#3498db' title="Notifications" onPress={() => {}}>
<Icon name="md-done-all" style={styles.actionButtonIcon} />
</ActionButton.Item>
<ActionButton.Item buttonColor='#1abc9c' title="All Tasks" onPress={() => {}}>
<Icon name="md-done-all" style={styles.actionButtonIcon} />
</ActionButton.Item>
</ActionButton>
</View>
// </View>
)
}
脚本告诉你完全有什么问题:你需要一个支持C ++ 14的编译器。这只是意味着你的海湾合作委员会太老了。
(您还没有告诉我们任何相关细节,例如您拥有的编译器版本,库版本等,所以我们只能猜测。但幸运的是,configure
诊断非常明确。)
安装图形工具的简单方法是升级发行版(14.04已过时)并使用Ubuntu软件包,如下所述:https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#debian-ubuntu
答案 1 :(得分:0)
由于图形工具似乎没有在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/]然后最终安装了图形-tool如主页上所述。
这样我就可以使用jupyter笔记本了,我仍然可以导入图形工具。