创建单个python可执行模块 [英] Create single python executable module

查看:106
本文介绍了创建单个python可执行模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我的模块中有很多python代码,这些模块位于多个python程序包中,现在我需要创建一个包含所有这些文件的python可执行模块或文件,因此它将在Windows和Linux服务器上运行.有什么可能的解决方案,以及如何解决?

Guys, I have much python code in modules which are resides in several python packages and now I need to create single python executable module or file which will include all these files, so it will be working on windows and on linux servers. What are possible solutions and how this can be done?

推荐答案

这就是egg文件的用途.阅读以下内容:什么python库/应用程序打包为.egg文件的优点是什么?

That's what egg files are for. Read this: What are the advantages of packaging your python library/application as an .egg file?

这篇关于创建单个python可执行模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆