qiskit-tutorials
qiskit-tutorials copied to clipboard
Qiskit import error
Informations
- Qiskit version: 0.28.0
- Python version: 3.7.10
- Operating system: MacOS
What is the current behavior?
I can successfully install qiskit by conda create -n myqiskit python=3.7, conda activate myqiskit, pip install qiskit.
However, when I try to import qiskit, I got the error message,
import qiskit
Traceback (most recent call last):
File "
Steps to reproduce the problem
conda create -n myqiskit python=3.7, conda activate myqiskit, pip install qiskit.
What is the expected behavior?
normal
Suggested solutions
I tried to reinstall the conda environment, and tried higher version of the python 3.9, none of them worked.
It seems that there was a problem installing one of the dependencies of qiskit called Tweedledum.
Official Link: https://pypi.org/project/tweedledum/
Here are a few things you can try in your Anaconda environment:
you can install it this way
- 1st Way :
pip install tweedledum
- 2nd Way:
pip install tweedledum-dev
- 3rd Way:
pip install --upgrade --force-reinstall tweedledum
Closing this issue as not relevant to Qiskit tutorials and it seems OP has a solution now 😄