Python uwsgi 无法安装以及编译报错的处理方式
2015-04-15 09:57
387 查看
之前安装uwsgi的时候编译一步有出错,因为比较早,部分错误代码已经找不到了,网上找了部分错误信息, 现把解决方式共享出来。
环境:CentOS release 6.4 Python 2.7.3
报类似下面的错误代码,多半因为setuptools没有安装,安装setuptools就好了
报类似下面的错误代码,多半因为python-devel没有正确安装,重新安装就好了
在安装uwsgi 以前,请确保libxml2,gcc,python-devel正确安装
环境:CentOS release 6.4 Python 2.7.3
报类似下面的错误代码,多半因为setuptools没有安装,安装setuptools就好了
bash-3.2# python setup.py build Traceback (most recent call last): File "setup.py", line 6, in module from setuptools import setup ImportError: No module named setuptools
报类似下面的错误代码,多半因为python-devel没有正确安装,重新安装就好了
n file included from plugins/python/python_plugin.c:1: plugins/python/uwsgi_python.h:2:20: error: Python.h: No such file or directory plugins/python/uwsgi_python.h:4:25: error: frameobject.h: No such file or di rectory In file included from plugins/python/python_plugin.c:1: plugins/python/uwsgi_python.h:42: error: expected �1�7�1�7before �1�7�1�7token plugins/python/uwsgi_python.h:43: error: expected �1�7�1�7before �1�7�1�7token [code]In file included from plugins/python/python_plugin.c:1:0:
plugins/python/uwsgi_python.h:2:20: 致命错误:Python.h:没有那个文件或目录
在安装uwsgi 以前,请确保libxml2,gcc,python-devel正确安装
相关文章推荐
- COM+安装过Crystal Report8后无法注册组件处理方式
- 【xiame】windows7文件夹无法删除的原因以及处理方式
- 教为学:Python学习之路(二):MySQLdb的几种安装方式,以及用Python测试连接MySql
- 安装MySQLdb-python时无法找到-lprobes_mysql处理一则
- 安装MySQLdb-python时无法找到-lprobes_mysql处理一则
- 安装win7时,出现“windows无法安装到这个磁盘,选中的磁盘采用GPT分区形式”的处理方式
- ubuntu下安装eclipse以及配置python编译环境
- python,numpy等的安装方式以及Theano的安装、vim的python开发环境配置总结
- 教为学:Python学习之路(二):MySQLdb的几种安装方式,以及用Python测试连接MySql
- python 常见bug以及处理方式
- 【转】ubuntu下安装eclipse以及配置python编译环境
- Python之matplotlib安装以及错误处理
- 以编译方式安装python 2.7(linux)
- Python安装easy_install报错的处理方式
- Ubuntu下numpy安装缺少Python.h头文件无法通过编译与python2.7-dev无法安装
- centos6 安装python3.5后pip无法使用的处理
- python︱模块加载(pip安装)以及pycharm安装与报错解决方式
- 【图文】Ubuntu系统源码方式编译安装node.js以及express安装出现找不到命令的问题
- Centos6.5 编译安装python3.5版本,无法使用退格键方向键删除键等
- python - 【数据】基本概念以及处理方式