zoukankan      html  css  js  c++  java
  • Python uwsgi 无法安装以及编译报错的处理方式

    之前安装uwsgi的时候编译一步有出错,因为比较早,部分错误代码已经找不到了,网上找了部分错误信息, 现把解决方式共享出来。

    环境: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 �171�7before �171�7token 
    plugins/python/uwsgi_python.h:43: error: expected �171�7before �171�7token 
    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正确安装

  • 相关阅读:
    鼠标悬停改变图片方法
    margin IE6中加倍问题
    js菜单效果
    杂谈
    常见的服务器端口号
    .NET 配置文件设置数据库连接属性
    ASP.NET 利用 Microsoft.Office.Interop.Excel 版本导出Excel数据
    DataGridView 绑定List时 属性不显示的解决方法
    C# 基本文件操作
    构建可克隆对象(ICloneable)
  • 原文地址:https://www.cnblogs.com/LinuxBlogs/p/4427704.html
Copyright © 2011-2022 走看看