centos7安装uwsgi报错
错误为:
[root@bogon ~]# pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0..tar.gz
Installing collected packages: uwsgi
Running setup.py install for uwsgi ... error
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:
/usr/lib64/python2./distutils/dist.py:: UserWarning: Unknown distribution option: 'descriptions'
warnings.warn(msg)
running install
using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/x86_64-redhat-linux/4.8.5/include', '/usr/local/include', '/usr/include']
Patching "bin_name" to properly install_scripts dir
detected CPU cores:
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);"
*** uWSGI compiling server core ***
[gcc -pthread] core/utils.o
[gcc -pthread] core/protocol.o
[gcc -pthread] core/socket.o
[gcc -pthread] core/logging.o
[gcc -pthread] core/master.o
[gcc -pthread] core/master_utils.o
[gcc -pthread] core/emperor.o
[gcc -pthread] core/notify.o
[gcc -pthread] core/mule.o
[gcc -pthread] core/subscription.o
[gcc -pthread] core/stats.o
[gcc -pthread] core/sendfile.o
[gcc -pthread] core/async.o
[gcc -pthread] core/master_checks.o
[gcc -pthread] core/fifo.o
[gcc -pthread] core/offload.o
[gcc -pthread] core/io.o
[gcc -pthread] core/static.o
[gcc -pthread] core/websockets.o
[gcc -pthread] core/spooler.o
[gcc -pthread] core/snmp.o
[gcc -pthread] core/exceptions.o
[gcc -pthread] core/config.o
[gcc -pthread] core/setup_utils.o
[gcc -pthread] core/clock.o
[gcc -pthread] core/init.o
[gcc -pthread] core/buffer.o
[gcc -pthread] core/reader.o
[gcc -pthread] core/writer.o
[gcc -pthread] core/alarm.o
[gcc -pthread] core/cron.o
[gcc -pthread] core/hooks.o
[gcc -pthread] core/plugins.o
[gcc -pthread] core/lock.o
[gcc -pthread] core/cache.o
[gcc -pthread] core/daemons.o
[gcc -pthread] core/errors.o
[gcc -pthread] core/hash.o
[gcc -pthread] core/master_events.o
[gcc -pthread] core/chunked.o
[gcc -pthread] core/queue.o
[gcc -pthread] core/event.o
[gcc -pthread] core/signal.o
[gcc -pthread] core/strings.o
[gcc -pthread] core/progress.o
[gcc -pthread] core/timebomb.o
[gcc -pthread] core/ini.o
[gcc -pthread] core/fsmon.o
[gcc -pthread] core/mount.o
[gcc -pthread] core/metrics.o
[gcc -pthread] core/plugins_builder.o
[gcc -pthread] core/sharedarea.o
[gcc -pthread] core/rpc.o
[gcc -pthread] core/gateway.o
[gcc -pthread] core/loop.o
[gcc -pthread] core/cookie.o
[gcc -pthread] core/querystring.o
[gcc -pthread] core/rb_timers.o
[gcc -pthread] core/transformations.o
[gcc -pthread] core/uwsgi.o
[gcc -pthread] proto/base.o
[gcc -pthread] proto/uwsgi.o
[gcc -pthread] proto/http.o
[gcc -pthread] proto/fastcgi.o
[gcc -pthread] proto/scgi.o
[gcc -pthread] proto/puwsgi.o
[gcc -pthread] lib/linux_ns.o
[gcc -pthread] core/zlib.o
[gcc -pthread] core/regexp.o
[gcc -pthread] core/routing.o
[gcc -pthread] core/yaml.o
[gcc -pthread] core/ssl.o
[gcc -pthread] core/legion.o
[gcc -pthread] core/xmlconf.o
[gcc -pthread] core/dot_h.o
[gcc -pthread] core/config_py.o
*** uWSGI compiling embedded plugins ***
[gcc -pthread] plugins/python/python_plugin.o
In file included from plugins/python/python_plugin.c:::
plugins/python/uwsgi_python.h::: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated. ----------------------------------------
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)。
yum install python-devel
dd
centos7安装uwsgi报错的更多相关文章
- 安装 uwsgi报错解决
背景: 安装 uwsgi时报错如下,查阅相关资料说是 python-devel的问题,于是安装之后python-devel后问题解决 报错如下: (venv) [xxxxxxx]# pip insta ...
- Ubuntu16.04上使用Anaconda3的Python3.6的pip安装UWSGI报错解决办法
具体报错信息: lto1: fatal error: bytecode stream generated with LTO version 6.0 instead of the expected 4. ...
- centos7安装docker-compose报错解决办法
docker-compose是 docker 容器的一种单机编排服务,docker-compose 是一个管理多个容器的工具,比如可以解决容器之间的依赖关系,当在宿主机启动较多的容器时候,如果都是 ...
- CentOS7 安装Docker报错
安装报错: Transaction check error: file /usr/lib/systemd/system/blk-availability.service from install o ...
- linux安装uwsgi,报错问题解决
uwsgi安装 uwsgi启动后出 -- unavailable modifier requested: 0 出现问题的的原因是找不到python的解释器(其他语言同理) 你使用的yum instal ...
- Deepin下python安装uwsgi报错: Python.h:没有那个文件或目录
解决方法是安装python-dev,这是Python的头文件和静态库包 正在读取软件包列表... 完成正在分析软件包的依赖关系树 正在读取状态信息... 完成 下列软件包是自动 ...
- CentOS7安装dnf报错:No package dnf available
1.百度中提供的安装办法 yum install epel-release -y yum install dnf 2. No package dnf available解决办法 运行一下几个命令: w ...
- Centos pip 安装uwsgi 报错“fatal error: Python.h: No such file or directory”
解决方法: 安装python-devel即可,注意,不是python-dev yum -y install python-devel
- CentOS7安装MySQL报错Failed to start mysqld.service: Unit not found解决办法
1 ~]# systemctl start mysql.service 要启动MySQL数据库是却是这样的提示 1 ~]# Failed to start mysqld.service: Unit n ...
随机推荐
- Java进阶——— 线程池的原理分析
前言 在了解线程池之前,其实首先出现的疑问是:为什么要使用线程池,其次是了解什么是线程池,最后是如何使用线程池,带着疑问去学习. 为什么要使用 前面多线程文章中,需要使用线程就开启一个新线程,简单方便 ...
- Python3 Tkinter-Grid
1.创建 from tkinter import * root=Tk() lb1=Label(root,text='Hello') lb2=Label(root,text='Grid') lb1.gr ...
- Thunder团队第三周 - Scrum会议3
Scrum会议3 小组名称:Thunder 项目名称:i阅app Scrum Master:代秋彤 工作照片: 参会成员: 王航:http://www.cnblogs.com/wangh013/ 李传 ...
- Android 数据存储 之 SQLite数据库详解
. 作者 :万境绝尘 转载请注明出处 : http://blog.csdn.net/shulianghan/article/details/19028665 . SQLiteDataBase示例程序下 ...
- HDU 5816 Hearthstone 概率dp
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5816 Hearthstone Time Limit: 2000/1000 MS (Java/Othe ...
- <Effective C++>读书摘要--Inheritance and Object-Oriented Design<一>
1.Furthermore, I explain what the different features in C++ really mean — what you are really expres ...
- 敏捷冲刺Day1
前言: 之前的各种对教务系统的分析,再加上我们两三天的讨论和一个小时的站立会议,我们做出最终的决定.--我们决定换个项目主题,将原来的教务辅助系统换成现在的校园帮帮帮服务,并在之后会将完成后的计划书附 ...
- MySQL必备命令
来源:http://www.cnblogs.com/liushuijinger/p/3381775.html 今天跟大家分享一下MySQL从连接到具体操作的一系列常用命令.可能有的人觉得现在有很多可视 ...
- [计算机网络-应用层] P2P应用
首先我们要先来区分一下下面的几种体系结构: CS:Client/Server 客户-服务器结构BS:Browser/Server 浏览器-服务器结构 P2P:Peer to Peer 对等结构 BS ...
- Redis Cluster实现原理
一.Redis Cluster主要特性和设计 集群目标 1)高性能和线性扩展,最大可以支撑到1000个节点:Cluster架构中无Proxy层,Master与slave之间使用异步replic ...