红联Linux门户
Linux帮助

Python.h:没有那个文件或目录错误的方法

发布时间:2015-09-18 22:11:10来源:linux网站作者:ShomyLiu

在Linux上安装Python的MySQLdb的时候,提示:

Python.h 没有那个文件或目录
error: Setup script exited with error: command 'gcc' failed with exit status 1


经过查阅资料才知道,需要安装好Python的静态库,头文件,apt-get即可;

sudo apt-get install python-dev


Ubuntu 14.04 64bit安装IPython:http://www.linuxdiyf.com/linux/13981.html

CentOS 6.5安装IPython3.0:http://www.linuxdiyf.com/linux/10337.html

IPython与Python的区别:http://www.linuxdiyf.com/linux/8992.html

CentOS6.5安装Python2.7.8以及安装iPython:http://www.linuxdiyf.com/linux/7002.html

在Uubuntu 14.04 64bit上搭建NumPy函数库环境:http://www.linuxdiyf.com/linux/13985.html