在不安装i的情况下使用pyWin32

2024-05-13 00:48:50 发布

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

不安装pyWin32就可以使用它吗? 我想把它包含到python的解释器文件夹中。 我在没有安装Python解释器的情况下成功地使用了它(只需安装它并将安装的目录复制并粘贴到我的产品中)。 我也需要同样的pyWin32。在

我的目标是: 客户机接收到一个文件夹,其中包含将在控制台中运行python程序的脚本(批处理)。客户机不必安装python、pywin32等等。他需要的是复制并粘贴我的产品并运行基于控制台的程序。在

有可能吗?在


Tags: 程序目录脚本文件夹目标客户机产品粘贴
1条回答
网友
1楼 · 发布于 2024-05-13 00:48:50

My objective is: Client receives a folder with a script (batch) which will run python program in a console. The client does not have to install python, pywin32, nothing. What he needs is to copy and paste my product and run the console-based program.

我建议使用pyinstaller或任何其他python代码到可执行转换器。在

http://www.pyinstaller.org/

PyInstaller is a program that freezes (packages) Python programs into stand-alone executables, under Windows, Linux, Mac OS X, FreeBSD, Solaris and AIX. Its main advantages over similar tools are that PyInstaller works with Python 2.7 and 3.3—3.5, it builds smaller executables thanks to transparent compression, it is fully multi-platform, and use the OS support to load the dynamic libraries, thus ensuring full compatibility.

在我看来这很适合你/你的客户的需要。此外,pyinstaller易于使用。在

相关问题 更多 >