简体   繁体   中英

Create windows executable using python setuptools

python setup.py bdist_windist

Error:

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.

Solution from this page :

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

But where can i found those exes to copy.

You can not create a Windows .exe on Debian/Linux. You need to have a Windows Machine with a Python installation or a VM.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM