如何解决通过 pip install h5pyViewer 安装 h5pyViewer 时出错
我正在尝试使用 pip install h5pyViewer
安装 h5pyViewer,但出现错误。
Collecting h5pyViewer Using cached h5pyViewer-0.0.1.6.tar.gz (74 kB) ERROR: Command errored out with exit status 1: command: /home/madhur/miniconda3/bin/python -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/tmp/pip-install-kx4npfnx/h5pyviewer/setup.py'"'"'; __file__='"'"'/tmp/pip-install-kx4npfnx/h5pyviewer/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-pip-egg-info-9tb86g5b cwd: /tmp/pip-install-kx4npfnx/h5pyviewer/ Complete output (6 lines): Traceback (most recent call last): File "<string>",line 1,in <module> File "/tmp/pip-install-kx4npfnx/h5pyviewer/setup.py",line 82 print ':'+ver+':'+gitcmt+':' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(':'+ver+':'+gitcmt+':')? ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Python 版本是 3.8.2 pip 版本是 20.2.4 Ubuntu 20.04.2 LTS
解决方法
h5pyViewer 0.0.1.6 已于 2015 年 11 月 5 日发布到 PyPI。代码显然仅适用于 Python2。该问题已在 2018 年 11 月 12 日提交 5229b39 的 git 存储库中修复。
不幸的是,由于 octal 0755
和 other compatibility problems,它仍然不兼容 Python3。底线:它仍然只支持 Python2。
为 Python 3 更新了 fork。你可以试试:
pip install git+https://github.com/Eothred/h5pyViewer.git
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。