You can do this easy by adding this to the options dict in setup.py 'dll_excludes': [ "mswsock.dll", "powrprof.dll" ]
source: http://stackoverflow.com/questions/1979486/py2exe-win32api-pyc-importerror-dll-load-failed -Amit alex23 wrote: > > Alex Hall <mehg...@gmail.com> wrote: >> I am stumped. The compiled version of my project works on my pc, but >> when I put it on a thumb drive and try it on a laptop without python >> installed I get this: >> ImportError: DLL load failed: The specified procedure could not be found. > > Are you using py2exe? If so, are you including the necessary MS > runtime dll[1]? > > 1: http://www.py2exe.org/index.cgi/Tutorial#Step5 > -- > http://mail.python.org/mailman/listinfo/python-list > > -- View this message in context: http://old.nabble.com/dll-errors-in-compiled-python-program-tp28407640p31538796.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list