AttributeError: el objeto 'módulo' no tiene atributo 'pydebug'

Cuando intento ejecutar una secuencia de comandos de Python, aparece el errorAttributeError: 'module' object has no attribute 'pydebug'. Estoy usando Python 2.6.

Error 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'

Respuestas a la pregunta(4)

Su respuesta a la pregunta