如何将Python项目转换为exe程序

2024-09-20 00:04:45 发布

您现在位置:Python中文网/ 问答频道 /正文

我创建了一个python映射应用程序,包含代码的文件夹结构如下所示:

Data Feed Implementations(main folder)

内部数据源实现:

_ init _.py (folder)

fp (folder containing files downloaded from sourceforge for an external module named FeedParser)

GetAtomFeed.py (class written by me which is part of program)

main.py (main script that takes user inputs and implements other classes)

quakegui.py (class written by me which is part of program)

我安装的名为feedparser的外部模块是项目的重要组成部分,它被导入GetAtomFeed中,GetAtomFeed被导入到中主.py以及地震桂.py. 该程序还使用matplotlib、plt和basemap。在

我如何分发这个程序,以便在没有安装python的windows机器上运行这个程序?我看了一下py2exe,但它只支持python2,对于pyinstaller这样的其他模块,当使用诸如basemap(matplotlib的扩展)和feedparser等外部模块时,它是否仍能创建独立的可执行文件还不清楚。在


Tags: 模块ofpy程序whichbyismain