我正在尝试运行一些Qiskit Aqua AI教程。导入软件包时,出现以下错误消息:ModuleNotFoundError:没有名为“ normality”的模块
通过pip安装,我已经安装了qiskit-aqua,qiskit-aer,datafreeze,dataset,Tensorflow-datasets,但是这些似乎都没有涵盖“ normality”模块。我在任何地方都找不到这个问题,有人可以帮忙吗?非常感谢! :)
from datafreeze import freeze
from dataset import *
from qiskit import BasicAer
from qiskit.aqua import run_algorithm, QuantumInstance
from qiskit.aqua.input import ClassificationInput
from qiskit.aqua.components.feature_maps import SecondOrderExpansion
from qiskit.aqua.algorithms import QSVM
from qiskit.aqua.utils import split_dataset_to_data_and_labels,
map_label_to_class_name
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-0dc07ae97373> in <module>()
----> 1 from datafreeze import freeze
2 from dataset import *
3 from qiskit import BasicAer
4 from qiskit.aqua import run_algorithm, QuantumInstance
5 from qiskit.aqua.input import ClassificationInput
c:\users\barborapencikova\appdata\local\programs\python\python36\lib\site-packages\datafreeze\__init__.py in <module>()
----> 1 from datafreeze.app import freeze
2
3 __all__ = [freeze]
c:\users\barborapencikova\appdata\local\programs\python\python36\lib\site-packages\datafreeze\app.py in <module>()
6 from datafreeze.util import FreezeException
7 from datafreeze.config import Configuration, Export
----> 8 from datafreeze.format import get_serializer
9
10
c:\users\barborapencikova\appdata\local\programs\python\python36\lib\site-packages\datafreeze\format\__init__.py in <module>()
----> 1 from datafreeze.format.fjson import JSONSerializer
2 from datafreeze.format.fcsv import CSVSerializer
3 from datafreeze.format.ftabson import TabsonSerializer
4
5 SERIALIZERS = {
c:\users\barborapencikova\appdata\local\programs\python\python36\lib\site-packages\datafreeze\format\fjson.py in <module>()
6 from six import PY3
7
----> 8 from datafreeze.format.common import Serializer
9
10
c:\users\barborapencikova\appdata\local\programs\python\python36\lib\site-packages\datafreeze\format\common.py in <module>()
5
6 from six import binary_type, text_type
----> 7 from normality import slugify
8
9 from datafreeze.util import FreezeException
ModuleNotFoundError: No module named 'normality'