IBM QISKit 本地模拟器报错,找不到gcc
IBM QISKit local simulator error, can't find gcc
当我想在 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 中找到了它)。我能做什么?
删除您当前的安装
pip 卸载 qiskit
然后安装0.5.3
pip 安装 qiskit
应该开箱即用。我 运行 在 0.5 中遇到了同样的问题。使用默认程序测试
https://github.com/QISKit/qiskit-sdk-py#creating-your-first-quantum-program
当我想在 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 中找到了它)。我能做什么?
删除您当前的安装
pip 卸载 qiskit
然后安装0.5.3
pip 安装 qiskit
应该开箱即用。我 运行 在 0.5 中遇到了同样的问题。使用默认程序测试
https://github.com/QISKit/qiskit-sdk-py#creating-your-first-quantum-program