gpt4 book ai didi

python - 如何使用 cxfreeze 打包一个 scrapy 项目?

转载 作者:行者123 更新时间:2023-11-28 18:55:15 32 4
gpt4 key购买 nike

我有一个 scrapy 项目,我想为使用 Windows 的客户打包所有项目,而无需为他们手动安装依赖项。我遇到了 cxfreeze,但我不太确定它如何与 scrapy 项目一起工作。

我想我会制作某种界面并使用“from scrapy.cmdline import execute”运行 scrapy 爬虫,但我不确定。

在此先感谢您的帮助。

最佳答案

试用 py2exe。它运行良好,您可以将所有代码捆绑在一个 exe 中。

我建议您排除未使用的包以减小 exe 大小(请参阅其站点上的 py2exe 示例)

更新 按照建议也试试

GUI2Exe is a Graphical User Interface frontend to all the "executable builders" available for the Python programming language. It can be used to build standalone Windows executables, Linux applications and Mac OS application bundles and plugins starting from Python scripts.

关于python - 如何使用 cxfreeze 打包一个 scrapy 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3790563/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com