Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

943
Visualizações
Failed to build h5py on mac M1

I am trying to install AlphaFold in a python virtual env. While trying to install dependencies, I get this error:

    ERROR: Could not find a version that satisfies the requirement tensorflow==1.14 (from versions: none)
ERROR: No matching distribution found for tensorflow==1.14

To fix this, I run the command: " pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl "

but on doing this, I get a long error message concluded with:

 In file included from /private/var/folders/r_/bgrrl1md0s5gx95p0q8qjj8h0000gn/T/pip-install-kh7jhw3_/h5py_4b8d652f3fda4ea0a05597c3cbb46b5b/h5py/defs.c:734:
  ./h5py/api_compat.h:27:10: fatal error: 'hdf5.h' file not found
  #include "hdf5.h"
           ^~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for h5py
Failed to build h5py
ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects

I tried the following commands with no success and the same error:

"brew install hdf5" (it gets installed, but the h5py installation is still unable to locate hdf5.h file) "sudo -H pip3 install h5py" "pip install h5py"

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

You will need to export the HDF5_DIR environment variable first.

Run:

$ export HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.12.1/
$ pip install --no-binary=h5py h5py
over 4 years ago · Santiago Trujillo Relatório

0

  1. brew install hdf5

  2. Get version number from ls /opt/homebrew/Cellar/hdf5/, mine was 1.13.0

  3. Export that directory so h5py can see it:

    export HDF5_DIR=/opt/homebrew/Cellar/hdf5/[version number]/

    Mine was: export HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.13.0/

  4. Try pip installing again (tensorflow or h5py).

over 4 years ago · Santiago Trujillo Relatório

0

None of the above answers worked for me, but this did:

brew install hdf5
export CPATH="/opt/homebrew/include/"
export HDF5_DIR=/opt/homebrew/
pip3 install h5py
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda