I installed Python 2.5.1 and added C:\Python25 to my path environment variable. Running "python" from command line works as it should. However when I tried to install pygame or numeric (I wasn't sure if pygame 1.7.1 for python 2.5 required numpy) the installers gave me errors. These were sorted by running them "as administrator". However, when I try and import anything I get DLL errors such as this:
Does anyone else get any of these problems or have an idea on how to resolve them?
Python 2.5.1 (r251:54863, Apr 18 2007, 09:02:36) [MSC v.1400 64 bit (AMD64)] on
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\lib\site-packages\pygame\__init__.py", line 75, in <module>
from pygame.base import *
ImportError: DLL load failed with error code 193
EDIT: running python as administrator and/or adding C:\Python25\lib\site-packages\pygame\ (where SDL.dll is located) to the PATH did not solve the problem. I also get the same problem in eclipse using pydev. The DLL error code is always 193.