views:

444

answers:

5

Hello all,

I'm trying to install the Python Imaging Library 1.1.6 for Python 2.6. After downloading the installation executable (Win XP), I receive the following error message:

"Application failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem"

Any thoughts on what I have done / not done? The application has not been installed, and I can't import the module through the IDLE session. Thoughts?

A: 

I am shooting in the dark: could it be this?

ayaz
+1  A: 

Install Python "for all users", not "just for me".

Martin v. Löwis
+3  A: 

It looks like an SxS ("side-by-side") issue. Probably the runtime libraries PIL is linked against are missing. Try installing a redistributable package of a compiler which was used to build PIL.

MSVC 2005 redist

MSVC 2008 redist

atzz
A: 

I got that same message recently to do with the wxPython library. It was because wxPython had been built using a later version of Visual C++ than I had on my PC. As atzz suggests, one solution is to install the appropriate redistributable package. Try a Google search for 'Microsoft Visual C++ 2008 Redistributable Package' and do the download. If that doesn't work, repeat for the 2005 version.

Charles Anderson
A: 

Can't vote yet (reputation too low), but I want to confirm that both atzz's (in my case MSVC 2008 redist helped) and Martin v. Löwis's (this one is not always possible though) solutions work. Thanks :)

Grzegorz Gacek