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.14Para 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 projectsProbé 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"
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 h5pybrew install hdf5
Obtenga el número de versión de ls /opt/homebrew/Cellar/hdf5/ , el mío era 1.13.0
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/
Intente instalar pip nuevamente (tensorflow o h5py).