python setup.py bdist_windist

错误:

Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.
error: [Errno 2] No such file or directory: '/usr/lib/python2.7/distutils/command/wininst-6.0.exe', /usr/lib/python2.7/distutils/command/wininst-6.0.exe not included in the Debian packages.


page中的解决方案:

We cannot include the .exe files, because these are not built from source. Hint: copy these from the source package.


但是我在哪里可以找到要复制的那些exe。

最佳答案

您不能在Debian / Linux上创建Windows .exe。您需要具有安装了Python的Windows机器或VM。

关于python - 使用python setuptools创建Windows可执行文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26376368/

10-10 21:00