首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装graphtool python时出错

安装graphtool python时出错
EN

Stack Overflow用户
提问于 2016-12-14 20:12:56
回答 2查看 195关注 0票数 2

我正在尝试在centos上创建图形工具,但是我收到了一个错误。

这是我尝试过的:

代码语言:javascript
复制
(python_2.7_numerical) [lpuggini@machinelearn-1 ~]$ pip install git+https://github.com/count0/graph-tool
Collecting git+https://github.com/count0/graph-tool
  Cloning https://github.com/count0/graph-tool to /tmp/pip-dU9eDe-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-dU9eDe-build/setup.py'

    ----------------------------------------

代码语言:javascript
复制
(python_2.7_numerical) [lpuggini@machinelearn-1 ~]$ pip install graphtool
Collecting graphtool
  Using cached graphtool-0.5.2.tar.gz
Collecting CherryPy<=3.1 (from graphtool)
  Using cached CherryPy-3.1.0.tar.gz
Collecting matplotlib<=0.90.1 (from graphtool)
  Using cached matplotlib-0.86.2.tar.gz
    Complete output from command python setup.py egg_info:
    installing data to ./matplotlib/mpl-data
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-16Qbh5/matplotlib/setup.py", line 201, in <module>
        build_transforms(ext_modules, packages, NUMERIX)
      File "setupext.py", line 760, in build_transforms
        add_numpy_flags(module)
      File "setupext.py", line 119, in add_numpy_flags
        module.include_dirs.append(numpy.get_numpy_include())
    AttributeError: 'module' object has no attribute 'get_numpy_include'

我也尝试过手动安装,但由于依赖项太多,所以太复杂了

EN

回答 2

Stack Overflow用户

发布于 2021-01-11 18:19:17

因为graph-tool在底层使用C,所以安装有点棘手。

请查看此处的安装说明https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions

票数 0
EN

Stack Overflow用户

发布于 2016-12-14 20:15:34

您使用的是哪种图形工具?如果您正在使用matplotlib %matplotlib内联

当我在Azureml中进行开发时,这通常适用于我

in Ipython notebook, Pandas is not displying the graph I try to plot

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41142358

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档