Search code examples
pythonxcodemacosgccqiskit

IBM QISKit local simulator error, can't find gcc


When I want to run the Bell example code from qiskit.org in macOS terminal it throws this error:

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 works well and I have Xcode installation but the gcc is not there (I found it in /usr/bin). What can I do?


Solution

  • Remove your current installation

    pip uninstall qiskit

    Then install 0.5.3

    pip install qiskit

    Should work out of the box. I ran into this same issue with 0.5. Test with a default program

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