Pip install qiskit:命令错误,退出状态为255:

时间:2019-07-23 18:31:58

标签: python pip qiskit

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

1 个答案:

答案 0 :(得分:0)

根据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