在不安装的情况下使用 pyWin32

Using pyWin32 without installing it

pyWin32不安装也能用吗? 我想将它包含在 python 的解释器文件夹中。 我已经设法在不安装的情况下使用 Python 解释器(只需安装它并将安装的目录复制并粘贴到我的产品中)。 我也需要与 pyWin32 相同。

我的 objective 是: 客户端收到一个包含脚本(批处理)的文件夹,该脚本将 运行 python 在控制台中编程。客户端不用装python,pywin32,什么都没有。他需要的是复制粘贴我的产品和运行基于控制台的程序。

可能吗?

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.

对我来说,这似乎非常适合 your/your 客户的需求。此外,pyinstaller 易于使用。