MATLAB Answers

Getting h5py error for python

12 views (last 30 days)
faran
faran on 9 Aug 2021
Answered: Yongjian Feng on 11 Aug 2021
I am trying to load h5py module in matlab and I am getting this error:
Error using h5>init h5py.h5 (line 1)
Python Error: ImportError: DLL load failed: The specified procedure could not be found.
I installed the versio 3.2.1 of this package through python but can not load it in matlab. Anyone can help in this?

Answers (1)

Yongjian Feng
Yongjian Feng on 11 Aug 2021
  1. Make sure you can use h5py in python first.
  2. Check where it is installed. Then use setenv inside matlab to set the env var PYTHONPATH to point to that location.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!