erro fatal 'stdio.h' Python 2.7.3 no Mac OS X 10.7.5

Foi-me dito que esta questão é mais adequada aqui no Stack Overflow (e não no ServerFault)

Então aqui vai:

Eu tenho esse problema estranho no meu Mac OS X 10.7.5

/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10: fatal error: 'stdio.h' file not found

O que causou o erro acima? Este erro tem me incomodado e não consigo instalar o mysql-python, pois estou preso nesta etapa.

Estou usando o Python 2.7.3. Coisas como o Google App Engine (python), script python, tornado geralmente funciona no meu mac. Mas não o mysql-python.

Eu instalei o MySQL usando a imagem dmg e copiei a pasta mysql para / usr / local /

Como faço para corrigir isso?

Eu também tentei executar o comando:sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ e instalar o mysql-python rodandosudo python setup.py install.

Mas recebeu o seguinte:

running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-intel/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.6-intel-2.7/MySQLdb
running build_ext
gcc-4.2 not found, using clang instead
building '_mysql' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -Dversion_info=(1,2,4,'rc',5) -D__version__=1.2.4c1 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.6-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
In file included from _mysql.c:29:
/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
1 error generated.
error: command 'clang' failed with exit status 1

Que outras formas possíveis posso corrigir?

obrigado!

Cumprimentos.

questionAnswers(1)

yourAnswerToTheQuestion