我一直有错误
ERROR:: Could not find a local HDF5 installation
Run Code Online (Sandbox Code Playgroud)
当我在 Python 中安装表时:
pip install tables
Run Code Online (Sandbox Code Playgroud)
我已经下载并安装了http://continuum.io/downloads但它没有帮助。我还能尝试解决什么问题?
如果您使用的是 anaconda 发行版,您可以这样做:
$ conda install pytables
Run Code Online (Sandbox Code Playgroud)
如果您需要从 pip 安装并且已经安装了 HDF5 库,您可以执行以下操作:
$ HDF5_DIR=/path/to/hdf5 pip install tables
Run Code Online (Sandbox Code Playgroud)
例如,您可以使用 conda 安装 HDF5,并仍然使用上面的方法安装 pytables,但使用 conda 会容易得多。
在Mac OS Arm芯片上:
brew install hdf5
HDF5_DIR=/opt/homebrew/Cellar/hdf5/1.12.2_2 pip install tables
Run Code Online (Sandbox Code Playgroud)
你就完成了!