how to install libhdf5-dev? (without yum, rpm nor apt-get)

19,590

Solution 1

If the issue is, that you didn't find the h5py's os level development lib. It is because you have been looking/searching with the wrong package name - the one you're trying is for Ubuntu, for CentOS it's hdf5-devel.

For CentOS

sudo yum -y install hdf5-devel

For Ubuntu

sudo apt-get install libhdf5-dev

Note: above command will install hdf5 development lib version 1.8.12


Just recently I have installed h5py - with no hassle, the package versions I have installed:

numpy==1.11.2
h5py==2.6.0

Solution 2

Can you use pip?

pip install h5py
Share:
19,590
Susan D. Taylor
Author by

Susan D. Taylor

geek girl

Updated on June 29, 2022

Comments

  • Susan D. Taylor
    Susan D. Taylor almost 2 years

    I want to use h5py which needs libhdf5-dev to be installed. I installed hdf5 from the source, and thought that any options with compiling that one would offer me the developer headers, but doesn't look like it.

    Anyone know how I can do this? Is there some other source i need to download? (I cant find any though)

    I am on amazon linux, yum search libhdf5-dev doesn't give me any result and I cant use rpm nor apt-get there, hence I wanted to compile it myself.

  • Susan D. Taylor
    Susan D. Taylor over 7 years
    it gives me the #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"error which as far as I can tell is due to missing libhdf5-dev