Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.05 KB

tbs-qiskit-version.md

File metadata and controls

43 lines (30 loc) · 1.05 KB
copyright lastupdated keywords subcollection content-type
years
2021, 2023
2022-07-26
question about qiskit errors, error when running qiskit or qiskit runtime commands
quantum-computing
troubleshoot

{{site.data.keyword.attribute-definition-list}}

Why am I getting an import error when I run a Qiskit command?

{: #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}