Installing h5py on an Ubuntu server

前端 未结 5 1183
一个人的身影
一个人的身影 2020-12-14 00:03

I was installing h5py on an Ubuntu server. However it seems to return an error that h5py.h is not found. It gives the same error message when I install it using

5条回答
  •  自闭症患者
    2020-12-14 00:54

    It is generally preferable to use pip instead of installing it manually, since pip will also install all python dependencies. You would still need your header files though.

    so:

    sudo apt-get install libhdf5-dev
    pip install h5py
    

提交回复
热议问题