首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >蓝光星火:!pip安装--用户表==错误::未能找到本地HDF5安装

蓝光星火:!pip安装--用户表==错误::未能找到本地HDF5安装
EN

Stack Overflow用户
提问于 2016-06-30 16:45:27
回答 1查看 74关注 0票数 0

我正在尝试安装pytable:

代码语言:javascript
复制
!pip install --user tables

结果在

代码语言:javascript
复制
Collecting tables
  Using cached tables-3.2.2.tar.gz
    Complete output from command python setup.py egg_info:
    /bin/ld: cannot find -lhdf5
    collect2: error: ld returned 1 exit status
    * Using Python 2.7.11 (default, Apr 19 2016, 15:04:20)
    * USE_PKGCONFIG: True
    .. ERROR:: Could not find a local HDF5 installation.
       You may need to explicitly state where your local HDF5 headers and
       library can be found by setting the ``HDF5_DIR`` environment
       variable or by using the ``--hdf5`` command-line option.

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

我怎样才能解决这个问题?我没有这项服务的管理特权。

有很多类似的问题,但这个问题是专门关于布卢米克斯星火服务的问题。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-06-30 16:47:39

这对我起了作用:

代码语言:javascript
复制
!wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.17.tar.bz2
!tar jxf hdf5-1.8.17.tar.bz2
!cd hdf5-1.8.17 && ./configure --prefix=$HOME/hdf5-bin && make && make install
!HDF5_DIR=$HOME/hdf5-bin pip install --user tables
...
output omitted for brevity
...
Installing collected packages: tables
  Running setup.py install for tables ... [?25l- \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ done
[?25hSuccessfully installed tables-3.2.2
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38129038

复制
相关文章

相似问题

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