Python 在 ubuntu 中安装 HDF5 和 pytables
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31719451/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
install HDF5 and pytables in ubuntu
提问by codeKiller
I am trying to install tables
package in Ubuntu 14.04 but sems like it is complaining.
我正在尝试tables
在 Ubuntu 14.04 中安装软件包,但似乎在抱怨。
I am trying to install it using PyCharm and its package installer, however seems like it is complaining about HDF5
package.
我正在尝试使用 PyCharm 及其软件包安装程序安装它,但似乎它在抱怨HDF5
package.json 。
However, seems like I cannnot find any hdf5
package to install before tables
.
但是,似乎我之前找不到任何hdf5
要安装的软件包tables
。
Could anyone explain the procedure to follow?
任何人都可以解释要遵循的程序吗?
采纳答案by codeKiller
Try to install libhdf5-7 and python-tables via apt
尝试通过 apt 安装 libhdf5-7 和 python-tables
回答by Hafiz Shehbaz Ali
Search for the HDF5 library in the ubuntu package repository.
在 ubuntu 包存储库中搜索 HDF5 库。
apt-cache search hdf5
The command will show the packages relating to hdf5.
该命令将显示与 hdf5 相关的包。
install the relevant package to you.
为您安装相关的软件包。
sudo apt-get install package-name.
mostly you have to install the hdf5-tools, h5utils, python-tables.
大多数情况下,您必须安装 hdf5-tools、h5utils、python-tables。
回答by T.C. Proctor
I found that installing the libhdf5-serial-dev
with
我发现安装libhdf5-serial-dev
with
sudo apt-get install libhdf5-serial-dev
did the trick.
成功了。
回答by zhengcao
To be more precise, do two steps on Ubuntu
更准确地说,在 Ubuntu 上做两步
1) install hdf5
1)安装hdf5
sudo apt-get install libhdf5-serial-dev
2) install pytables
2)安装pytables
pip install tables