错误为:

  1. [root@bogon ~]# pip install uwsgi
  2. Collecting uwsgi
  3. Using cached uwsgi-2.0..tar.gz
  4. Installing collected packages: uwsgi
  5. Running setup.py install for uwsgi ... error
  6. Complete output from command /bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BPRRjx/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4EVV4c-record/install-record.txt --single-version-externally-managed --compile:
  7. /usr/lib64/python2./distutils/dist.py:: UserWarning: Unknown distribution option: 'descriptions'
  8. warnings.warn(msg)
  9. running install
  10. using profile: buildconf/default.ini
  11. detected include path: ['/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include', '/usr/local/include', '/usr/include']
  12. Patching "bin_name" to properly install_scripts dir
  13. detected CPU cores:
  14. configured CFLAGS: -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS= -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-format -Wno-format-security -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_VERSION="\"2.0.15\"" -DUWSGI_VERSION_BASE="" -DUWSGI_VERSION_MAJOR="" -DUWSGI_VERSION_MINOR="" -DUWSGI_VERSION_REVISION="" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -DUWSGI_XML -DUWSGI_XML_EXPAT -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(gevent);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(gevent);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"
  15. *** uWSGI compiling server core ***
  16. [gcc -pthread] core/utils.o
  17. [gcc -pthread] core/protocol.o
  18. [gcc -pthread] core/socket.o
  19. [gcc -pthread] core/logging.o
  20. [gcc -pthread] core/master.o
  21. [gcc -pthread] core/master_utils.o
  22. [gcc -pthread] core/emperor.o
  23. [gcc -pthread] core/notify.o
  24. [gcc -pthread] core/mule.o
  25. [gcc -pthread] core/subscription.o
  26. [gcc -pthread] core/stats.o
  27. [gcc -pthread] core/sendfile.o
  28. [gcc -pthread] core/async.o
  29. [gcc -pthread] core/master_checks.o
  30. [gcc -pthread] core/fifo.o
  31. [gcc -pthread] core/offload.o
  32. [gcc -pthread] core/io.o
  33. [gcc -pthread] core/static.o
  34. [gcc -pthread] core/websockets.o
  35. [gcc -pthread] core/spooler.o
  36. [gcc -pthread] core/snmp.o
  37. [gcc -pthread] core/exceptions.o
  38. [gcc -pthread] core/config.o
  39. [gcc -pthread] core/setup_utils.o
  40. [gcc -pthread] core/clock.o
  41. [gcc -pthread] core/init.o
  42. [gcc -pthread] core/buffer.o
  43. [gcc -pthread] core/reader.o
  44. [gcc -pthread] core/writer.o
  45. [gcc -pthread] core/alarm.o
  46. [gcc -pthread] core/cron.o
  47. [gcc -pthread] core/hooks.o
  48. [gcc -pthread] core/plugins.o
  49. [gcc -pthread] core/lock.o
  50. [gcc -pthread] core/cache.o
  51. [gcc -pthread] core/daemons.o
  52. [gcc -pthread] core/errors.o
  53. [gcc -pthread] core/hash.o
  54. [gcc -pthread] core/master_events.o
  55. [gcc -pthread] core/chunked.o
  56. [gcc -pthread] core/queue.o
  57. [gcc -pthread] core/event.o
  58. [gcc -pthread] core/signal.o
  59. [gcc -pthread] core/strings.o
  60. [gcc -pthread] core/progress.o
  61. [gcc -pthread] core/timebomb.o
  62. [gcc -pthread] core/ini.o
  63. [gcc -pthread] core/fsmon.o
  64. [gcc -pthread] core/mount.o
  65. [gcc -pthread] core/metrics.o
  66. [gcc -pthread] core/plugins_builder.o
  67. [gcc -pthread] core/sharedarea.o
  68. [gcc -pthread] core/rpc.o
  69. [gcc -pthread] core/gateway.o
  70. [gcc -pthread] core/loop.o
  71. [gcc -pthread] core/cookie.o
  72. [gcc -pthread] core/querystring.o
  73. [gcc -pthread] core/rb_timers.o
  74. [gcc -pthread] core/transformations.o
  75. [gcc -pthread] core/uwsgi.o
  76. [gcc -pthread] proto/base.o
  77. [gcc -pthread] proto/uwsgi.o
  78. [gcc -pthread] proto/http.o
  79. [gcc -pthread] proto/fastcgi.o
  80. [gcc -pthread] proto/scgi.o
  81. [gcc -pthread] proto/puwsgi.o
  82. [gcc -pthread] lib/linux_ns.o
  83. [gcc -pthread] core/zlib.o
  84. [gcc -pthread] core/regexp.o
  85. [gcc -pthread] core/routing.o
  86. [gcc -pthread] core/yaml.o
  87. [gcc -pthread] core/ssl.o
  88. [gcc -pthread] core/legion.o
  89. [gcc -pthread] core/xmlconf.o
  90. [gcc -pthread] core/dot_h.o
  91. [gcc -pthread] core/config_py.o
  92. *** uWSGI compiling embedded plugins ***
  93. [gcc -pthread] plugins/python/python_plugin.o
  94. In file included from plugins/python/python_plugin.c:::
  95. plugins/python/uwsgi_python.h::: fatal error: Python.h: No such file or directory
  96. #include <Python.h>
  97. ^
  98. compilation terminated.
  99.  
  100. ----------------------------------------
  101. Command "/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BPRRjx/uwsgi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4EVV4c-record/install-record.txt --single-version-externally-managed --compile" failed with error code in /tmp/pip-build-BPRRjx/uwsgi/

解决方法:

CentOS 下 python-dev 叫做 python-devel

http://blog.csdn.net/ichuzhen/article/details/24643577

在使用 Python 进行开发时需要安装一些依赖包,最近在 CentOS 下安装 python-dev 包时总是找不到,查阅资料后发现,CentOS 下叫做 python-devel,而非一般开发包的 -dev(Ubuntu 下还是叫做 python-dev)。

  1. yum install python-devel

dd

centos7安装uwsgi报错的更多相关文章

  1. 安装 uwsgi报错解决

    背景: 安装 uwsgi时报错如下,查阅相关资料说是 python-devel的问题,于是安装之后python-devel后问题解决 报错如下: (venv) [xxxxxxx]# pip insta ...

  2. Ubuntu16.04上使用Anaconda3的Python3.6的pip安装UWSGI报错解决办法

    具体报错信息: lto1: fatal error: bytecode stream generated with LTO version 6.0 instead of the expected 4. ...

  3. centos7安装docker-compose报错解决办法

      docker-compose是 docker 容器的一种单机编排服务,docker-compose 是一个管理多个容器的工具,比如可以解决容器之间的依赖关系,当在宿主机启动较多的容器时候,如果都是 ...

  4. CentOS7 安装Docker报错

    安装报错: Transaction check error:  file /usr/lib/systemd/system/blk-availability.service from install o ...

  5. linux安装uwsgi,报错问题解决

    uwsgi安装 uwsgi启动后出 -- unavailable modifier requested: 0 出现问题的的原因是找不到python的解释器(其他语言同理) 你使用的yum instal ...

  6. Deepin下python安装uwsgi报错: Python.h:没有那个文件或目录

    解决方法是安装python-dev,这是Python的头文件和静态库包 正在读取软件包列表... 完成正在分析软件包的依赖关系树       正在读取状态信息... 完成       下列软件包是自动 ...

  7. CentOS7安装dnf报错:No package dnf available

    1.百度中提供的安装办法 yum install epel-release -y yum install dnf 2. No package dnf available解决办法 运行一下几个命令: w ...

  8. Centos pip 安装uwsgi 报错“fatal error: Python.h: No such file or directory”

    解决方法: 安装python-devel即可,注意,不是python-dev yum -y install python-devel

  9. CentOS7安装MySQL报错Failed to start mysqld.service: Unit not found解决办法

    1 ~]# systemctl start mysql.service 要启动MySQL数据库是却是这样的提示 1 ~]# Failed to start mysqld.service: Unit n ...

随机推荐

  1. sql server存储特殊字符解决办法

    好久没来院子了,最近在学java了,再加上项目比较紧,最近都没怎么上,其实这几天在项目中学到不少东西,都能写下来,但是久而久之就忘了,还是得养成及时总结的好习惯啊,还有有时间一定要把那个小项目整理下来 ...

  2. [堆+贪心]牛客练习赛40-B

    传送门:牛客练习赛40 题面: 小A手头有 n 份任务,他可以以任意顺序完成这些任务,只有完成当前的任务后,他才能做下一个任务 第 i 个任务需要花费  x_i 的时间,同时完成第 i 个任务的时间不 ...

  3. logisitic回归

    线性回归目的是找到一条直线(或者超平面)尽可能地接近所有的训练数据点,而对数几率回归的目的是找到一条直线(或者超平面)尽可能地分开两种不同类别的数据点. 对数几率回归感觉更像是一个分类问题.https ...

  4. Faster RCNN论文解析

    Faster R-CNN由一个推荐区域的全卷积网络和Fast R-CNN组成, Fast R-CNN使用推荐区域.整个网络的结构如下: 1.1 区域推荐网络 输入是一张图片(任意大小), 输出是目标推 ...

  5. C#程序 权限不够的解决方案

    有时候需要操作硬件,或者启动windows服务程序时,系统会提示很多奇怪的问题,归根结底就是程序当前所拥有的权限不够,需要提升,以前我们时手写一个manifest,多不容易啊, 现在有正常的方法了 1 ...

  6. Python3 循环表达式

    一 While循环 基本循环 while 条件: 执行内容 #循环体 ... #循环体 ... #循环体 # 若条件为真,执行循环体内容 # 若条件为假,不执行循环体内容 实例1(Python 3.0 ...

  7. 使用libpcab抓包&处理包

    #include <stdio.h> #include <stdlib.h> #include <strings.h> #include <string.h& ...

  8. Java接口与继承作业

    为什么子类的构造方法在运行之前,必须调用父类的构造方法?能不能反过来?为什么不能反过来? 因为子类继承了父类,那么就默认的含有父类的公共成员方法和公共成员变量,这些方法和变量在子类里不再重复声明.如果 ...

  9. Java中的死锁问题

    死锁问题: 例如有两个线程, 线程1与线程2. 线程1在执行的过程中, 要锁定对象1, 2才能完成整个操作, 首先锁定对象1, 再锁定对象2. 线程2在执行的过程中, 要锁定对象2, 1才能完成整个操 ...

  10. android入门 — ListView的优化

    ListView的运行效率是比较低的,因为在getView()中每次都会将整个布局重新加载一遍,当ListView快速滚动的时候就会成为性能瓶颈. 调用View中的findViewById()方法获取 ...