【问题标题】:Error installing h5pyViewer by pip install h5pyViewer通过 pip install h5pyViewer 安装 h5pyViewer 时出错
【发布时间】:2021-02-18 12:46:24
【问题描述】:

我正在尝试使用 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 点子版本是 20.2.4 Ubuntu 20.04.2 LTS

【问题讨论】:

    标签: python ubuntu pip h5py


    【解决方案1】:

    h5pyViewer 0.0.1.6 于 2015 年 11 月 5 日发布到 PyPI。代码显然是 Python2-only。该问题已在 2018 年 11 月 12 日提交 5229b39 的 git 存储库中修复。

    不幸的是,由于octal 0755other compatibility problems,它仍然与Python3 不兼容。底线:它仍然是 Python2-only。

    有一个为 Python 3 更新的fork。你可以试试:

    pip install git+https://github.com/Eothred/h5pyViewer.git
    

    【讨论】:

      猜你喜欢
      • 2021-03-21
      • 1970-01-01
      • 2020-12-26
      • 2022-06-17
      • 2014-05-24
      • 2014-05-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多