python-3.x - pip-review :: 错误:命令出错,退出状态为 1:
问题描述
我想更新所有 Python 模块。
在 StackOverflow 上,我在此页面上找到了我认为最好的解决方案。
不幸的是,如果我运行:
$ pip install pip-review
$ pip-review --local --interactive
Python 工作了几分钟,下载并收集模块更新,然后完全失败并出现错误:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p9q7aft7/tables/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p9q7aft7/tables/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-p9q7aft7/tables/pip-egg-info
cwd: /tmp/pip-install-p9q7aft7/tables/
Complete output (15 lines):
/tmp/H5closecy5usdpw.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
/tmp/H5closecy5usdpw.c: In function ‘main’:
/tmp/H5closecy5usdpw.c:2:5: warning: implicit declaration of function ‘H5close’ [-Wimplicit-function-declaration]
H5close();
^
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
* Using Python 3.5.2 (default, Oct 8 2019, 13:06:37)
* USE_PKGCONFIG: True
.. 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.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我搜索了这个错误,但它对我来说似乎是一个普遍的错误,我不知道应该采取什么方向来调试这个问题。
解决方案
推荐阅读
- python - 方程中的符号向量
- javascript - Vue CLI npm run build 抛出语法错误:意外的令牌 - 但代码看起来不错
- javascript - 在滚动一定数量的像素后使用 JavaScript 做某事不起作用
- arrays - 填充矩阵时访问冲突写入位置
- google-cloud-platform - 逐块上传到 GCP 存储签名的 url 文件
- python - PyCharm 中的错误类型警告
- mysql - TypeScript 正确键入查询结果 MySQL
- discord.js - message.member.voice.channel;不工作
- javascript - 在平面列表中渲染许多图像时,如何将包含图像位置的道具传递给图像源?
- reactjs - 为不同的组件加载不同的JS库文件