AttributeError: objeto 'module' não possui atributo 'pydebug'

Ao tentar executar um script python, recebo o erroAttributeError: 'module' object has no attribute 'pydebug'. Eu estou usando o Python 2.6.

Erro completo:

File "/lib/python2.6/distutils/sysconfig.py", line 238, in get_makefile_filename
    return os.path.join(lib_dir, "config" + (sys.pydebug and "_d" or ""), "Makefile")
AttributeError: 'module' object has no attribute 'pydebug'

questionAnswers(4)

yourAnswerToTheQuestion