9

I'm trying to compile my python script into a single .exe using gui2exe (which uses py2exe to create a .exe). My program is using wxWidgets and everytime I try to compile it I get the following error message:

error MSVCP90.dll: No such file or directory.

I have already downloaded and installed the VC++ redistributable package, so I should have this .dll shouldn't I?

Tom Zych
  • 13,329
  • 9
  • 36
  • 53
Kredns
  • 36,461
  • 52
  • 152
  • 203

2 Answers2

8

Yes you should have it. You have to exclude it from py2exe.

options = {
    'py2exe': {
        'dll_excludes': [
            'MSVCP90.dll'
         ]
     }
}

setup(windows=["main.py"], options=options)
Kredns
  • 36,461
  • 52
  • 152
  • 203
Georg Schölly
  • 124,188
  • 49
  • 220
  • 267
1

what you need is to go to microsoft's download site and get visual C++ 2008 redistributed package. Tell it to do a repair and search for the driver. Copy the driver to the DLL folder in the python directory

Jon
  • 11
  • 1