简体   繁体   English

使用cx_freeze将python文件转换为可执行文件时出现问题

[英]Issue in converting python file to an executable using cx_freeze

I have been working on a python GUI based project using PyQt5. 我一直在使用PyQt5进行基于python GUI的项目。 I am done with that and it runs perfectly on my PC but I want to make an executable out of it. 我已经做完了,它可以在我的PC上完美运行,但是我想用它制作一个可执行文件。 So, i'm using cx_freeze to convert my python file to an executable. 因此,我正在使用cx_freeze将我的python文件转换为可执行文件。 I have python version 3.5 and PyQt5. 我有python版本3.5和PyQt5。

When I build the script the build folder is made and when I run the executable it get the missing modules error as shown in the image attached. 当我生成脚本时,将生成build文件夹,当我运行可执行文件时,它将得到缺少的模块错误,如附件中的图像所示。

Kindly, help me out i am stuck on this for ages now. 请帮帮我,我已经坚持了好多年了。 在此处输入图片说明

将所有模块复制到与要转换为exe的文件相同的目录中,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM