gpt4 book ai didi

installation - pytables 安装失败

转载 作者:行者123 更新时间:2023-12-01 07:57:13 30 4
gpt4 key购买 nike

我愿意:

sudo pip install --upgrade tables

我得到:
    /usr/bin/ld: cannot find -lhdf5
collect2: ld returned 1 exit status
.. 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.
Complete output from command python setup.py egg_info:
/usr/bin/ld: cannot find -lhdf5

然而:
$ echo $HDF5_DIR 
/opt/hdf5/
$ ls /opt/hdf5/
bin include lib share
$ ls /opt/hdf5/lib/
libhdf5.a libhdf5_hl.la libhdf5_hl.so.8 libhdf5.la libhdf5.so libhdf5.so.8.0.1
libhdf5_hl.a libhdf5_hl.so libhdf5_hl.so.8.0.1 libhdf5.settings libhdf5.so.8

怎么了?如何调试?我已经尝试将 HDF5_DIR 设置为/opt/或/opt/hdf5/lib。

最佳答案

我在尝试在本地 virtualenv 中工作的 Debian sid 上也遇到了同样的错误。为了解决它,我做了:

apt-get build-dep python-tables
HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial/ && pip install tables

......现在它正在工作。

关于installation - pytables 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21607974/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com