IBM QISKit本地模拟器错误,无法找到gcc

时间:2018-05-12 21:03:54

标签: python xcode macos gcc qiskit

当我想在macOS终端中从qiskit.org运行Bell示例代码时,它会抛出此错误:

ERROR:qiskit.backends.local.qasm_simulator_cpp:ERROR: Simulator encountered a runtime error: dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgomp.1.dylib

Python3运行良好,我有Xcode安装,但gcc不存在(我在/ usr / bin中找到它)。我能做什么?

1 个答案:

答案 0 :(得分:0)

删除当前安装

pip uninstall qiskit

然后安装0.5.3

pip install qiskit

应该开箱即用。我用0.5遇到了同样的问题。使用默认程序进行测试

https://github.com/QISKit/qiskit-sdk-py#creating-your-first-quantum-program