The Windows installer created using setup.py bdist_wininst raises RuntimeError during installation. How to fix it?

I am creating an EXE installation for my project using setuptool bdist_wininst. However, I found that when I actually run the specified installer on a Win7-64bit machine with Python 2.7.3, I get a Runtime Error that looks like this: http://i.imgur.com/8osT3.jpg . (only a 64-bit installer versus the 64-bit version of python-2.7, 32-bit (on the 32-bit version of python2.7) looks great). I can click OK and the installation will complete, but this, of course, seems unsatisfactory to end users.

Any ideas how to solve it?

+6
source share
2 answers

Maybe the Visual C ++ redistributable package is missing or damaged, try (re) installing the Microsoft Visual C ++ 2008 redistributable package SP1 / 2010 (x64) or any other version.

+1
source

Perhaps you need to create an executable specifically for x64? This is the command you should run:

python setup.py build --plat-name=win-amd64 

More detailed information can be found here:

http://docs.python.org/2/distutils/builtdist.html#cross-compiling-on-windows

+1
source

All Articles