民笙 2022-11-27 09:22 采纳率: 0%
浏览 1

关于导入#mtcnn#的问题,如何解决?(语言-python)

Traceback (most recent call last):
  File "D:\pythonproject\Adience-main\mtcnn_process.py", line 5, in <module>
    from mtcnn import MTCNN
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\mtcnn\__init__.py", line 26, in <module>
    from mtcnn.mtcnn import MTCNN
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\mtcnn\mtcnn.py", line 37, in <module>
    from mtcnn.network.factory import NetworkFactory
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\mtcnn\network\factory.py", line 26, in <module>
    from tensorflow.keras.layers import Input, Dense, Conv2D, MaxPooling2D, PReLU, Flatten, Softmax
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\tensorflow\__init__.py", line 479, in <module>
    keras._load()
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\tensorflow\python\util\lazy_loader.py", line 45, in _load
    module = importlib.import_module(self.__name__)
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\keras\__init__.py", line 25, in <module>
    from keras import models
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\keras\models.py", line 20, in <module>
    from keras import metrics as metrics_module
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\keras\metrics.py", line 26, in <module>
    from keras import activations
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\keras\activations.py", line 20, in <module>
    from keras.layers import advanced_activations
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\keras\layers\__init__.py", line 27, in <module>
    from keras.engine.base_preprocessing_layer import PreprocessingLayer
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\keras\engine\base_preprocessing_layer.py", line 19, in <module>
    from keras.engine import data_adapter
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\keras\engine\data_adapter.py", line 37, in <module>
    import pandas as pd  # pylint: disable=g-import-not-at-top
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\pandas\__init__.py", line 22, in <module>
    from pandas.compat import (
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\pandas\compat\__init__.py", line 15, in <module>
    from pandas.compat.numpy import (
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\pandas\compat\numpy\__init__.py", line 7, in <module>
    from pandas.util.version import Version
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\pandas\util\__init__.py", line 1, in <module>
    from pandas.util._decorators import (  # noqa
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\pandas\util\_decorators.py", line 14, in <module>
    from pandas._libs.properties import cache_readonly  # noqa
  File "C:\Users\minsheng\AppData\Local\Programs\Python\Python37\Lib\site-packages\pandas\_libs\__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
  File "pandas\_libs\interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

进程已结束,退出代码1


python为3.7.6
相关库版本如下:
mtcnn== 0.1.1
opencv-python==4.6.0.66
keras==2.7.0
numpy==1.19.5
报错的原因是版本不对应吗?求各位传道授业解惑

  • 写回答

1条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 修改了问题 11月27日
      • 创建了问题 11月27日

      悬赏问题

      • ¥100 用YOLOv5检测胸部肿瘤之前处理步骤
      • ¥15 关于H.265中查表估算编码比特数的相关问题
      • ¥15 关于#AC正确率#的问题,如何解决?
      • ¥30 pyinstaller后不执行print且不能退出
      • ¥15 IncredBuild报错
      • ¥15 锂电池偏最小二乘法参数辩识
      • ¥15 session失效问题
      • ¥15 GMS地下水数值模拟无法打开
      • ¥15 树型结构的数据怎么匹配分支
      • ¥15 stm32F4用.引不出来结构体成员怎么解决