I have an error when I use Quantum SVM kernel algorithm from Qiskit aqua.

This is my code section with imports:

from datasets import *
import numpy as np
from qiskit_aqua.utils import split_dataset_to_data_and_labels
from qiskit_aqua.input import svminput
from qiskit_aqua import run_algorithm
from qiskit_aqua.utils import split_dataset_to_data_and_labels

And here is the error I obtain:

ModuleNotFoundError: No module named 'qiskit_aqua'
  • $\begingroup$ Hi @Zeinab Ali! You need to at least include the following information in your question: version of qiskit installed, how you installed it, version of Python you are running. You can have this information with the commands python -V and python -m pip list. $\endgroup$ – Nelimee Jul 2 '19 at 11:32
  • $\begingroup$ I was going to install qiskit on cluster. I got this error "ModuleNotFoundError: No module named 'qiskit.aqua' $\endgroup$ – sassan moradi Jun 24 at 18:42

If your using the latest qiskit version then it is qiskit.aqua

| improve this answer | |
  • $\begingroup$ Thanks Mr. Nation for your answer, already I did that but every time show new error such as ImportError: cannot import name 'QasmQobj' from 'qiskit.qobj' $\endgroup$ – Zeinab Ali Jul 2 '19 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.