meteva
meteva copied to clipboard
递归依赖 pytables 引起 pip 安装失败
Windows python 3.9
,安装期间报错
Collecting tables>=3.4.4
Downloading https://mirror.sjtu.edu.cn/pypi-packages/2b/32/847ee3f521aae6a0be380d923a736162d698586f444df1ac24b98c65025c/tables-3.6.1.tar.gz (4.6 MB)
|████████████████████████████████| 4.6 MB 6.4 MB/s
ERROR: Command errored out with exit status 1:
command: 'S:\ProgramData\Miniconda3\envs\sci\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-c0kb2rzt\\tables_0ddda4f4fb6548cc915d97e1a8339ed0\\setup.py'"'"'; __file__='"'"'C:\\Users\\admin\\AppData\\Local\\Temp\\pip-install-c0kb2rzt\\tables_0ddda4f4fb6548cc915d97e1a8339ed0\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\admin\AppData\Local\Temp\pip-pip-egg-info-osgq2ar6'
cwd: C:\Users\admin\AppData\Local\Temp\pip-install-c0kb2rzt\tables_0ddda4f4fb6548cc915d97e1a8339ed0\
Complete output (10 lines):
H5close16_k8rkh.c
C:\Users\admin\AppData\Local\Temp\H5close16_k8rkh.c(2): warning C4013: “H5close”未定义;假设外部返回 int
LINK : fatal error LNK1181: 无法打开输入文件“hdf5.lib”
* Using Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]
* USE_PKGCONFIG: False
* Found conda env: ``S:\ProgramData\Miniconda3\envs\sci``
.. 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.
https://github.com/PyTables/PyTables/issues/885
目前解决方案:pip install tables
有问题,先执行conda install pytables
,再pip install meteva