0

我正在尝试使用 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
4

1 回答 1

0

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

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

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

Qiskit GitHub 存储库问题日志

于 2020-06-17T15:41:58.147 回答