[英]Error on running exe build using Pyinstaller
Following is the list of modules I am using: 以下是我正在使用的模块列表:
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
Exception 例外
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.")
Error on running the generated exe: 运行生成的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
I have tried the suggested solutions on git links but nothing seems to work. 我已经尝试了git链接上的建议解决方案,但似乎没有任何效果。 The script itself runs fine.
脚本本身运行良好。 Iam on Windows 10, Python 3.6
Windows 10,Python 3.6上的Iam
I was able to finally resolve the issue by following: 我终于可以通过以下方法解决此问题:
Make sure your Microsoft build tools are installed and the dll location is present in PATH(both x86 and x64). 确保已安装Microsoft构建工具,并且DLL(x86和x64)中都存在dll位置。 Restart the machine after editing PATH variables.
编辑PATH变量后重新启动计算机。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.