Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

381
Views
No se pudo compilar h5py en mac M1

Estoy tratando de instalar AlphaFold en un entorno virtual de Python. Al intentar instalar dependencias, aparece este 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

Para solucionar esto, ejecuto el comando: "pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl "

pero al hacer esto, aparece un largo mensaje de error que concluye con:

 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

Probé los siguientes comandos sin éxito y el mismo error:

"brew install hdf5" (se instala, pero la instalación de h5py aún no puede localizar el archivo hdf5.h) "sudo -H pip3 install h5py" "pip install h5py"

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Primero deberá exportar la variable de entorno HDF5_DIR .

Correr:

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

0

  1. brew install hdf5

  2. Obtenga el número de versión de ls /opt/homebrew/Cellar/hdf5/ , el mío era 1.13.0

  3. Exporte ese directorio para que h5py pueda verlo:

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

    El mío fue: export HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.13.0/

  4. Intente instalar pip nuevamente (tensorflow o h5py).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!