在MacOS HighSierra上安装qiskit错误:没有这样的文件或目录:'qiskit.egg-info'

时间:2018-02-14 17:30:57

标签: python python-3.x pip anaconda qiskit

我试图通过their webpage中提到的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 (*)

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

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:4)

您可以尝试安装cmake。

pip install cmake

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