小编sam*_*sam的帖子

在 mac M1 上构建 h5py 失败

我正在尝试在 python 虚拟环境中安装 AlphaFold。在尝试安装依赖项时,我收到此错误:

    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
Run Code Online (Sandbox Code Playgroud)

为了解决这个问题,我运行命令:“ pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.14.0-py3-none-any.whl

但这样做时,我收到一条很长的错误消息,结论是:

 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 …
Run Code Online (Sandbox Code Playgroud)

python hdf5 h5py tensorflow apple-m1

10
推荐指数
2
解决办法
5742
查看次数

标签 统计

apple-m1 ×1

h5py ×1

hdf5 ×1

python ×1

tensorflow ×1