3

我试图通过他们网页上提到的 pip 方法安装 QISKit 。

但是,经过多次尝试,这种方法似乎不起作用,我在终端上收到以下错误。

  Compiling QISKit C++ Simulator
  creating out
  WARNING: Seems like the cpp simulator can't be built, Qiskit will install anyway, but won't have this simulator support.
  installing to build/bdist.macosx-10.6-x86_64/wheel
  running install
  running install_lib
  warning: install_lib: 'build/lib' does not exist -- no Python modules to install

  running install_egg_info
  Copying qiskit.egg-info to build/bdist.macosx-10.6-x86_64/wheel/qiskit-0.4.9.data/purelib/qiskit-0.4.9-py3.5.egg-info
  error: [Errno 2] No such file or directory: 'qiskit.egg-info'

  ----------------------------------------
  Failed building wheel for qiskit (*)
  Running setup.py clean for qiskit
Failed to build qiskit 
Installing collected packages: Sphinx, qiskit
  Found existing installation: Sphinx 1.4.6
Cannot remove entries from nonexistent file /Users/photon/anaconda3/lib/python3.5/site-packages/easy-install.pth (*)

其中以 (*) 结尾的行在终端中显示为红色。

我该如何解决这个问题?

4

1 回答 1

4

你可以尝试安装cmake。

pip install cmake

我对最新的 QISKit 也有疑问。请在 github 页面QIS Issue 292上查看问题。

于 2018-02-15T04:48:06.900 回答