copyright | lastupdated | keywords | subcollection | content-type | ||
---|---|---|---|---|---|---|
|
2022-07-26 |
question about qiskit errors, error when running qiskit or qiskit runtime commands |
quantum-computing |
troubleshoot |
{{site.data.keyword.attribute-definition-list}}
{: #tbs-qiskit-version} {: troubleshoot}
You're having trouble running Qiskit commands, for example, from a notebook. {: shortdesc}
You run a Qiskit command but get an error message, starting with an import error. For example: ImportError: cannot import name 'SymbolicPulse' from 'qiskit.pulse.library'...
.
{: tsSymptoms}
This can happen when Qiskit or Qiskit Runtime is down-level. {: tsCauses}
Update Qiskit and Qiskit Runtime by running these commands, then try the command again: {: tsResolve}
# Installs the latest version of the Qiskit meta-package.
pip install qiskit -U
{: codeblock}
# Installs the latest version of the Qiskit Runtime package.
pip install qiskit-ibm-runtime -U
{: codeblock}