程序问答   发布时间:2022-06-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Mac OS X 10.7.5上的致命错误'stdio.h'Python 2.7.3大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决Mac OS X 10.7.5上的致命错误'stdio.h'Python 2.7.3?

开发过程中遇到Mac OS X 10.7.5上的致命错误'stdio.h'Python 2.7.3的问题如何解决?下面主要结合日常开发的经验,给出你关于Mac OS X 10.7.5上的致命错误'stdio.h'Python 2.7.3的解决方法建议,希望对你解决Mac OS X 10.7.5上的致命错误'stdio.h'Python 2.7.3有所启发或帮助;

我想通了。

只需安装Xcode中提供的命令行工具即可解决问题。

干杯。

解决方法

@H_874_11@

有人告诉我,这个问题更适合于Stack Overflow(而不是ServerFault)

因此,它去了:

我的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

是什么原因导致上述错误?这个错误困扰着我,我无法安装R_174_11845@ysql-python,因为我坚持这一步。

我正在使用Python 2.7.3。Google App
ENGIne(python),python脚本,龙卷风之类的东西通常可以在我的Mac上运行。但不是mysql-python。

我已经使用dmg映像安装了MySQL,并将mysql文件夹复制到/ usr / local /

我该如何解决?

我还尝试过运行命令:,sudo xcode-SELEct -switch /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/
然后通过运行来安装mysql-python sudo python setup.py install

但是收到以下信息:

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

我还可以通过哪些其他方式修复它?

谢谢!

最好的祝福。

大佬总结

以上是大佬教程为你收集整理的Mac OS X 10.7.5上的致命错误'stdio.h'Python 2.7.3全部内容,希望文章能够帮你解决Mac OS X 10.7.5上的致命错误'stdio.h'Python 2.7.3所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。