一区二区三区日韩精品-日韩经典一区二区三区-五月激情综合丁香婷婷-欧美精品中文字幕专区

分享

成功解決module = loader.load_module(fullname) ImportError: DLL load failed: 找不到指定的模塊。

 處女座的程序猿 2021-09-28

成功解決module = loader.load_module(fullname) ImportError: DLL load failed: 找不到指定的模塊。


解決問(wèn)題

module = loader.load_module(fullname)ImportError: DLL load failed: 找不到指定的模塊。

Traceback (most recent call last):
  File "CV Detection Smiling Sex bakup\CV_Object.py", line 205, in on_pushButton_9_clicked
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "CV Detection Smiling Sex bakup\utils\datasets.py", line 1, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\io\__init__.py", line 97, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\io\matlab\__init__.py", line 13, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\io\matlab\mio.py", line 12, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\io\matlab\miobase.py", line 22, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\misc\__init__.py", line 68, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\interpolate\__init__.py", line 175, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\interpolate\interpolate.py", line 20, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\linalg\__init__.py", line 190, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\linalg\misc.py", line 5, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "scipy\linalg\blas.py", line 214, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
    module = loader.load_module(fullname)
ImportError: DLL load failed: 找不到指定的模塊。

有的網(wǎng)友說(shuō)需要更新pillow庫(kù),pip install pillow

解決方法

T1、搜索路徑

找了下是路徑不對(duì),指定搜索路徑就好了,如下
pyinstaller --path C:\Users\leon\AppData\Local\Programs\Python\Python35\Lib\site-packages\PyQt5\Qt\bin -F name.py
pyinstaller --path?F:\Program Files\Python\Python36\Lib\site-packages\PyQt5\Qt\bin?-F CV_Object.py

T2、放在前邊

將調(diào)用的自定義的函數(shù)文件放在最前邊,而不是放在按鈕命令下,比如

T3、找到出錯(cuò)的位置繼續(xù)更新庫(kù)

Traceback (most recent call last):
  File "CV Detection Smiling Sex bakup\CV_Object.py", line 23, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "CV Detection Smiling Sex bakup\yolo.py", line 13, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\__init__.py", line 7, in <module>
    from . import datasets
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\datasets\__init__.py", line 4, in <module>
    from . import activations
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\datasets\imdb.py", line 8, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\preprocessing\__init__.py", line 12, in <module>
    from . import callbacks
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\preprocessing\image.py", line 7, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras_preprocessing\image.py", line 9, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\__init__.py", line 186, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\misc.py", line 5, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\blas.py", line 196, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
    module = loader.load_module(fullname)
ImportError: DLL load failed: 找不到指定的模塊。
[18756] Failed to execute script CV_Object
Traceback (most recent call last):
  File "CV Detection Smiling Sex bakup\CV_Object.py", line 34, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "CV Detection Smiling Sex bakup\utils.py", line 5, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\__init__.py", line 7, in <module>
    from . import datasets
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\datasets\__init__.py", line 4, in <module>
    from . import activations
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\datasets\imdb.py", line 8, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\preprocessing\__init__.py", line 12, in <module>
    from . import callbacks
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\preprocessing\image.py", line 7, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras_preprocessing\image.py", line 9, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\__init__.py", line 186, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\misc.py", line 5, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\blas.py", line 196, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
    module = loader.load_module(fullname)
ImportError: DLL load failed: 找不到指定的模塊。
[29928] Failed to execute script CV_Object

T4、問(wèn)題原因numpy沒(méi)找到支持blas的庫(kù)

(1)先下載numpy+mkl
(2)并添加到環(huán)境變量里面

Traceback (most recent call last):
  File "CV Detection Smiling Sex no voice\CV_Object.py", line 21, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "CV Detection Smiling Sex no voice\yolo.py", line 13, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\__init__.py", line 7, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\datasets\__init__.py", line 4, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\datasets\imdb.py", line 8, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\preprocessing\__init__.py", line 12, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras\preprocessing\image.py", line 7, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\keras_preprocessing\image.py", line 9, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\__init__.py", line 190, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\misc.py", line 5, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\scipy\linalg\blas.py", line 214, in <module>
  File "f:\program files\python\python36\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
    module = loader.load_module(fullname)
ImportError: DLL load failed: 找不到指定的模塊。
[8496] Failed to execute script CV_Object

T5、將缺少的dll文件賦值到exe所在文件夾



大功告成!


相關(guān)文章
ImportError when importing certain modules from SciPY
ImportError: DLL load failed: 找不到指定的模塊

    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多

    97人摸人人澡人人人超碰| 欧美人妻一区二区三区| 黄片免费播放一区二区| 大香蕉精品视频一区二区| 老鸭窝精彩从这里蔓延| 日韩欧美二区中文字幕| 日韩欧美一区二区不卡视频| 国内精品伊人久久久av高清| 亚洲精品偷拍视频免费观看| 成年男女午夜久久久精品| 久久午夜福利精品日韩| 激情亚洲一区国产精品久久| 国产欧美一区二区另类精品| 97人妻人人揉人人躁人人| 亚洲天堂有码中文字幕视频| 精品熟女少妇av免费久久野外| 精品国产91亚洲一区二区三区| 日本办公室三级在线观看| 国产熟女一区二区三区四区| 国产又粗又猛又大爽又黄同志| 免费人妻精品一区二区三区久久久 | 亚洲国产婷婷六月丁香| 亚洲一区二区精品福利| 中文字幕一区久久综合| 香蕉网尹人综合在线观看| 国产亚洲精品俞拍视频福利区| 日本高清二区视频久二区| 在线观看视频成人午夜| 少妇在线一区二区三区| 国产高清精品福利私拍| 99国产一区在线播放| 日韩免费国产91在线| 国产女优视频一区二区| 扒开腿狂躁女人爽出白浆av| 欧美日韩国产自拍亚洲| 草草夜色精品国产噜噜竹菊| 真实国产乱子伦对白视频不卡| 日本一品道在线免费观看| 欧美日韩一区二区综合| 大尺度激情福利视频在线观看| 久草国产精品一区二区|