简体   繁体   English

如何在python中使用cx_freeze制作exe

[英]How to use cx_freeze in python to make exe

I have a tkinter python program of mine that I want to convert into an exe, but the problem is yet I have not been able to find a good enough documentation to help me understand the accurate procedure.我有一个 tkinter python 程序,我想将其转换为 exe,但问题是我还没有找到足够好的文档来帮助我理解准确的程序。

The problem is also that I am also using PyPDF2 as a module in the program, which I do not know how to include, do I just add it in the modules collection.问题还在于我也在程序中使用PyPDF2作为模块,我不知道如何包含,我只是将它添加到模块集合中。

I would really like a well in-depth explanation for the same or a link to any documentation for the same.我真的很想对相同的内容进行深入的解释,或者提供指向相同内容的任何文档的链接。 (I just need a standard procedure that I can use for any programs with any modules) (我只需要一个可用于任何模块的程序的标准程序)

These are my import statements(I am not just listing modules to make sure that if the from module import something makes a difference in the cx_freeze code) -:这些是我的导入语句(我不只是列出模块以确保如果从模块导入某些东西会对 cx_freeze 代码产生影响)-:

from os import path
from PIL import Image
from datetime import datetime
from tkinter import filedialog, colorchooser, font
import tkinter, img2pdf, os, pickle
import PyPDF2 as pdf

I have a tkinter python program of mine that I need to change over into an exe, yet the issue is yet I have not had the option to locate an adequate documentation to assist me with understanding the precise method.我有一个 tkinter python 程序,我需要转换为 exe,但问题是我还没有找到足够的文档来帮助我理解精确的方法。

The issue is likewise that I am additionally utilizing PyPDF2 as a module in the program, which I don't have the foggiest idea how to incorporate, do I simply include it in the modules assortment.问题同样是我还在程序中使用 PyPDF2 作为模块,我不知道如何合并,我只是将它包含在模块分类中。

I would truly like a well inside and out clarification for the equivalent or a connect to any documentation for the equivalent.我真的很想对等价物进行彻底的内外澄清,或者连接到任何等价物的文档。 (I simply need a standard methodology that I can use for any projects with any modules) (我只需要一种标准方法,我可以将它用于任何带有任何模块的项目)

These are my import statements(I am not simply posting modules to ensure that if the from module import something has any kind of effect in the cx_freeze code) -:这些是我的导入语句(我不是简单地发布模块以确保如果从模块导入某些东西在 cx_freeze 代码中有任何影响)-:

from os import way 

from PIL import Image 

from datetime import datetime 

from tkinter import filedialog, colorchooser, textual style 

import tkinter, img2pdf, os, pickle 

import PyPDF2 as pdf

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

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