使用python setuptools创建可执行文件

时间:2014-10-15 07:02:23

标签: python setuptools ubuntu-14.04

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.

但我在哪里可以找到那些复制品。

1 个答案:

答案 0 :(得分:-2)

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