Pip PyTables似乎不承认hdf5
我有一个类似的问题,PyTables似乎不承认hdf5,尽管它显然已安装。下面是来自pip的一条略为缩写的错误消息 我要多说几句,因为我觉得这很烦人,主要是代码警告Pip PyTables似乎不承认hdf5,pip,pytables,h5py,Pip,Pytables,H5py,我有一个类似的问题,PyTables似乎不承认hdf5,尽管它显然已安装。下面是来自pip的一条略为缩写的错误消息 我要多说几句,因为我觉得这很烦人,主要是代码警告 pip install --upgrade h5py Requirement already up-to-date: h5py in /Library/Python/2.7/site-packages Cleaning up... $ pip install --upgrade tables Downloading/unpackin
pip install --upgrade h5py
Requirement already up-to-date: h5py in /Library/Python/2.7/site-packages
Cleaning up...
$ pip install --upgrade tables
Downloading/unpacking tables
Downloading tables-3.1.1.tar.gz (6.7MB): 6.7MB downloaded
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
* Using Python 2.7.5 (default, Mar 9 2014, 22:15:05)
* Found numpy 1.9.0 package installed.
* Found numexpr 2.4 package installed.
* Found Cython 0.21 package installed.
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the ``HDF5_DIR`` environment
variable or by using the ``--hdf5`` command-line option.
Complete output from command python setup.py egg_info:
/var/folders/0w/y_9w4kq53pqfgrc72bb7cml40000gn/T/H5closekvR8zE.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
* Using Python 2.7.5 (default, Mar 9 2014, 22:15:05)
* Found numpy 1.9.0 package installed.
* Found numexpr 2.4 package installed.
* Found Cython 0.21 package installed.
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the ``HDF5_DIR`` environment
variable or by using the ``--hdf5`` command-line option.
我认为您的问题可能是因为h5py不需要hdf5头文件,而pytables需要。要在基于debian的系统上安装它们:sudo apt get install hdf5 dev