问题描述
除2.7之外,我还将安装Python 2.7.当再次为2.7安装PyTables时,出现此错误-
I am installing Python 2.7 in addition to 2.7. When installing PyTables again for 2.7, I get this error -
- 找到已安装的numpy 1.5.1软件包...错误::找不到本地HDF5安装.您可能需要明确说明本地HDF5标头和可以通过设置
HDF5_DIR
环境来找到库变量或使用--hdf5
命令行选项.
- Found numpy 1.5.1 package installed... ERROR:: Could not find a local HDF5 installation.You may need to explicitly state where your local HDF5 headers andlibrary can be found by setting the
HDF5_DIR
environmentvariable or by using the--hdf5
command-line option.
我对HDF的安装不清楚.我再次下载-并将其复制到/usr/local/hdf5目录.并尝试按照PyTable安装中的建议设置环境变量.还有其他人有这个问题可以帮助您吗?
I am not clear on the HDF installation. I downloaded again - and copied it into a /usr/local/hdf5 directory. And tried to set the environement vars as suggested in the PyTable install. Has anyone else had this problem that could help?
推荐答案
hdf5命令行选项未正确说明(--hdf5 ='/usr/local/hdf5').在setup.py中添加打印语句可以更轻松地解决问题.
The hdf5 command line option was not stated correctly ( --hdf5='/usr/local/hdf5' ). Sprinkling print statements in the setup.py made it easier to pin down the problem.
这篇关于无法重新安装适用于Python 2.7的PyTables的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!