【Error】Python安装gevent时出错:“致命错误: Python.h:没有那个文件或目录”
2015-01-26 20:01
921 查看
Python Web开发时,为了获得极高的并发性能,需要使用gevent,在Linux下用python的包安装工具pip安装gevent时:sudo pip install gevent,出现如下错误:
致命错误: Python.h:没有那个文件或目录
这种情况是因为没有安装python-dev,所以只需要安装python-dev之后再安装gevent就不会出错了。
安装python-dev命令:sudo apt-get install python-dev
最近在用gunicorn+gevent来进行python web开发,遇到了上述的错误,希望对大家有用。
致命错误: Python.h:没有那个文件或目录
这种情况是因为没有安装python-dev,所以只需要安装python-dev之后再安装gevent就不会出错了。
安装python-dev命令:sudo apt-get install python-dev
最近在用gunicorn+gevent来进行python web开发,遇到了上述的错误,希望对大家有用。
相关文章推荐
- 安装mysql-python报致命错误:my_config.h:没有那个文件或目录
- pip安装mysql-python报致命错误:my_config.h:没有那个文件或目录
- pip安装mysql-python报致命错误:my_config.h:没有那个文件或目录
- make menuconfig时出现致命错误:fatal error: curses.h: 没有那个文件或目录
- Ubuntu安装git时出错,git-compat-util.h:280:25: fatal error: openssl/ssl.h: 没有那个文件或目录
- utbutu16.10 安装pyaudio模块过程出现错误 fatal error: portaudio.h: 没有那个文件或目录 error: command 'x86_64-linux-gn
- python 2.7安装某些包出现错误:"libxml/xmlversion.h:没有那个文件或目录"
- 致命错误: mysql/mysql.h:没有那个文件或目录 解决办法
- 解决 Python.h:没有那个文件或目录 错误的方法
- python 错误汇总2:致命错误: libxml/xmlversion.h:没有那个文件或目录
- ubuntu11.10 安装reportlab出现“Python.h: 没有那个文件或目录”
- ubuntu安装LNMP0.6和“502错误及/usr/local/php/sbin/php-fpm: 没有那个文件或目录”解决方案
- 遇到错误-----安装DBD:MySql模块遇到的问题及解决办法Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 479.
- 解决 Python.h:没有那个文件或目录 错误的方法
- python错误汇总3:libxslt/xsltconfig.h:没有那个文件或目录
- ubuntu下安装错误“tail: 无法打开 “+250” 读取数据: 没有那个文件或目录“
- 安装交叉编译工具出错,arm-linux-gcc: 没有那个文件或目录
- 遇到错误-----安装DBD:MySql模块遇到的问题及解决办法Can't exec "mysql_config": 没有那个文件或目录 at Makefile.PL line 479.
- 解决 Python.h:没有那个文件或目录 错误的方法( Python.h:No such file or directory )
- 解决 Python.h:没有那个文件或目录 错误的方法