A colleague and I both got this error on Win 64-bit in the last dialog of the installer:
close failed in file object destructor:
Error in sys.excepthook:
Original exception was:
I was able find this thread which describe the same problem:
http://python-forum.com/pythonforum/viewtopic.php?f=15&t=17163&start=0&sid=84e05d8a7c989bb8a3f36ea0a868c28a
When I run pywin32_postinstall.py manually, this is what I get:
C:\Python27\Scripts>pywin32_postinstall.py -install
Copied pythoncom27.dll to C:\Windows\system32\pythoncom27.dll
Copied pywintypes27.dll to C:\Windows\system32\pywintypes27.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Registered: Python
-> Software\Python\PythonCore\2.7\Help[None]=None
-> Software\Python\PythonCore\2.7\Help\Pythonwin Reference[None]='C:\\Python27\\
Lib\\site-packages\\PyWin32.chm'
Pythonwin has been registered in context menu
Can't install shortcuts - u'C:\\Users\\SND\\AppData\\Roaming\\Microsoft\\Windows
\\Start Menu\\Programs\\Python 2.7' is not a folder
The pywin32 extensions were successfully installed.
PyWin32 appears to be installed and operational despite the error. The Python 2.7 program group icons are also registered despite the warning in the output above.