运行 使用 Pyinstaller 构建 exe 时出错
Error on running exe build using Pyinstaller
以下是我正在使用的模块列表:
import sys
import cv2
import numpy as np
import pytesseract
from PIL import Image
from sklearn.cluster import MeanShift, estimate_bandwidth
from sklearn.datasets.samples_generator import make_blobs
import re
import jellyfish
异常
Traceback (most recent call last):
File "c:\python\lib\site-packages\matplotlib\backends\backend_webagg.py", line 29, in <module>
import tornado
ModuleNotFoundError: No module named 'tornado'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 12, in <module>
File "c:\python\lib\site-packages\matplotlib\backends\backend_webagg.py", line 31, in <module>
raise RuntimeError("The WebAgg backend requires Tornado.")
运行 生成的 exe 出错:
File "c:\python\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\scipy\sparse\linalg\isolve\iterative.py", line 7, in <module>
File "c:\python\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
module = loader.load_module(fullname)
ImportError: DLL load failed: The specified module could not be found.
[22724] Failed to execute script main
我已经在 git 链接上尝试了建议的解决方案,但似乎没有任何效果。脚本本身运行良好。我在 Windows 10,Python 3.6
我终于能够通过以下方式解决问题:
- 安装和安装龙卷风并导入龙卷风
评论中的 Diego Contreras
- 按照 post [
中提到的步骤
确保您的 Microsoft 构建工具已安装并且 dll 位置存在于 PATH 中(x86 和 x64)。编辑 PATH 变量后重启机器。
以下是我正在使用的模块列表:
import sys
import cv2
import numpy as np
import pytesseract
from PIL import Image
from sklearn.cluster import MeanShift, estimate_bandwidth
from sklearn.datasets.samples_generator import make_blobs
import re
import jellyfish
异常
Traceback (most recent call last):
File "c:\python\lib\site-packages\matplotlib\backends\backend_webagg.py", line 29, in <module>
import tornado
ModuleNotFoundError: No module named 'tornado'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 12, in <module>
File "c:\python\lib\site-packages\matplotlib\backends\backend_webagg.py", line 31, in <module>
raise RuntimeError("The WebAgg backend requires Tornado.")
运行 生成的 exe 出错:
File "c:\python\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 631, in exec_module
exec(bytecode, module.__dict__)
File "site-packages\scipy\sparse\linalg\isolve\iterative.py", line 7, in <module>
File "c:\python\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 714, in load_module
module = loader.load_module(fullname)
ImportError: DLL load failed: The specified module could not be found.
[22724] Failed to execute script main
我已经在 git 链接上尝试了建议的解决方案,但似乎没有任何效果。脚本本身运行良好。我在 Windows 10,Python 3.6
我终于能够通过以下方式解决问题:
- 安装和安装龙卷风并导入龙卷风 评论中的 Diego Contreras
- 按照 post [
确保您的 Microsoft 构建工具已安装并且 dll 位置存在于 PATH 中(x86 和 x64)。编辑 PATH 变量后重启机器。