I\'m trying to convert a simple Python script into a Windows executable. My setup.py script is:
from distutils.core import setup
import py2exe
setup(
name =
I recently installed Anaconda, partly because I need the win32com package, and don't want to exclude dll files. However, same problem for me.
Solution was to copy the DLL files:
pywintypes27.dll
pythoncom27.dll
sitting in:
C:\Anaconda\Lib\site-packages\win32
to
C:\Anaconda\Lib\site-packages\win32\lib
Because the function looking for those files look there but not in the directory above. Lots of comments in the source file pywintypes.py reveals there has been issues with this, probably due to different install procedures. I have posted an issue on the Anaconda issue tracker here.