【问题标题】:Pip install qiskit: Command errored out with exit status 255:Pip install qiskit:命令出错,退出状态为 255:
【发布时间】:2019-07-23 18:31:58
【问题描述】:

我正在尝试使用 pip 在运行 Python 3.7 的elementaryOS juno 上安装Qiskit。我什至升级到最新的点子。

我得到以下日志:

Building wheels for collected packages: qiskit
  Building wheel for qiskit (setup.py) ... error
  ERROR: Command errored out with exit status 255:
   command: /home/laura/.pyenv/versions/anaconda3-2019.03/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p35oetbg/qiskit/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p35oetbg/qiskit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-2ms47shp --python-tag cp37
       cwd: /tmp/pip-install-p35oetbg/qiskit/
  Complete output (1 lines):
  running bdist_wheel
  ----------------------------------------
  ERROR: Failed building wheel for qiskit
  Running setup.py clean for qiskit
Failed to build qiskit
Installing collected packages: qiskit
  Running setup.py install for qiskit ... done
Successfully installed qiskit-0.11.0

【问题讨论】:

  • 表示安装成功。什么不起作用?
  • 它说:错误:命令出错,退出状态为 255:----------------- ----------- 错误:无法为 qiskit 构建轮子为 qiskit 运行 setup.py clean”我似乎无法将模块导入 pycharm...
  • 我一直在读那个。但是我们仍然不知道什么不起作用。只有一条消息。您没有说明安装后软件包是否出现故障。

标签: python pip qiskit


【解决方案1】:

根据 Qiskit GitHub 存储库中的问题日志,各种用户似乎都报告了此错误。请尝试以下步骤。

  1. 安装 Anaconda
  2. 创建 python 3.7 环境:conda create --name your_env python=3.7
  3. conda 激活 your_env
  4. pip install qiskit

如果执行这些步骤后问题仍然存在,您可以在以下 GitHub 存储库问题日志中报告问题的具体详细信息。

Qiskit GitHub Repository Issue Log

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-14
    • 2021-07-12
    • 2020-07-19
    • 1970-01-01
    • 1970-01-01
    • 2018-09-21
    • 2020-02-24
    相关资源
    最近更新 更多