美文网首页
2018-09-06 阿里云 centos 上安装和使用 pyt

2018-09-06 阿里云 centos 上安装和使用 pyt

作者: 搞技术的小星星 | 来源:发表于2018-09-06 23:46 被阅读48次

安装步骤

  • 安装gcc
yum group install "Development Tools"
  • 安装python-igraph
sudo pip install python-igraph

使用条件

  • 安装 cairocffi
    (不安装会出现问题:plotting not available)
yum install cairo-devel
pip install cairocffi

使用

import cairocffi as cairo
import igraph
  • Done!

可能遇到的坑

  • 请安装python-igraph,而不是igraph, 两者不是同类
  • 请先安装gcc,否则出现安装python-igraph错误:Could not download and compile the C core of igraph. mac上可以先通过brew安装,

相关文章

网友评论

      本文标题:2018-09-06 阿里云 centos 上安装和使用 pyt

      本文链接:https://www.haomeiwen.com/subject/raxqgftx.html