Pyinstaller卡住而没有错误消息

时间:2019-06-23 22:07:44

标签: python pyinstaller

我目前正在尝试使用Pyinstaller将python文件转换为可执行文件。 当我使用默认设置启动Pyinstaller时,它开始工作。 Python显示CPU / RAM的使用情况,但过一分钟后它显示CPU使用率为0%,并且似乎停止工作。 该程序仍在运行,并且没有错误消息。 我尝试转换一个“ hello world”程序,此程序在几秒钟内就起作用了。 我的代码大约有400行,其中大多数设置了界面,并且我导入了tkinter,numpy,pandas和docx等软件包。

是否估计需要等待多长时间/一种检测出问题所在的方法?

我正在Spyder上运行Python 3.7。

编辑:

我并没有走太远,只是在您好世界示例中添加numpy太多了:

added = True
if request.is_ajax():       
   subtotal = (product_format.price - product_format.price * 
   product_format.discount / 100) * cart_item.quantity
   productFormat = product_format.bformat
   json_data = {
        'added': added,
        'productFormat': str(productFormat),
        'quantity': cart_item.quantity,
        'discount': product_format.discount,
        'price': product_format.price,
        'subtotal': subtotal,
   }

   return JsonResponse(json_data) 

EDIT2:

我切换到cx_freeze,它给出了错误消息,并且我可以使它工作

0 个答案:

没有答案
相关问题