python3.6 安装uwsgi报错处理
2021-06-07 21:03
标签:sign nts record void cloc collect def emc line 报以上错误,是因为没有安装依赖 可以安装以下依赖 现在就欧克了 python3.6 安装uwsgi报错处理 标签:sign nts record void cloc collect def emc line 原文地址:https://www.cnblogs.com/1164xiepei-qi/p/14550636.htmlWARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with ‘-m pip‘ instead of running pip directly.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting uWSGI
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c7/75/45234f7b441c59b1eefd31ba3d1041a7e3c89602af24488e2a22e11e7259/uWSGI-2.0.19.1.tar.gz (803 kB)
Collecting some-package
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/a2/d318a685319c3801db1ae0002fc8e095663a55546c62a6e30d9d0fc3289b/some-package-0.1.zip (2.8 kB)
Using legacy ‘setup.py install‘ for some-package, since package ‘wheel‘ is not installed.
Using legacy ‘setup.py install‘ for uWSGI, since package ‘wheel‘ is not installed.
Installing collected packages: uWSGI, some-package
Running setup.py install for uWSGI ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"‘"‘/tmp/pip-install-enqrifj_/uwsgi_5ce55f6b003c4288bfe5f9dfb0d5b5ac/setup.py‘"‘"‘; __file__=‘"‘"‘/tmp/pip-install-enqrifj_/uwsgi_5ce55f6b003c4288bfe5f9dfb0d5b5ac/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-record-6koc94ic/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/uWSGI
cwd: /tmp/pip-install-enqrifj_/uwsgi_5ce55f6b003c4288bfe5f9dfb0d5b5ac/
Complete output (199 lines):
/usr/lib64/python3.6/distutils/dist.py:261: 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: 28
configured CFLAGS: -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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_UUID -DUWSGI_VERSION="\"2.0.19.1\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="19" -DUWSGI_VERSION_REVISION="1" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -I/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -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 ***
[thread 3][gcc -pthread] core/utils.o
[thread 0][gcc -pthread] core/protocol.o
[thread 2][gcc -pthread] core/socket.o
[thread 4][gcc -pthread] core/logging.o
[thread 6][gcc -pthread] core/master.o
[thread 5][gcc -pthread] core/master_utils.o
[thread 7][gcc -pthread] core/emperor.o
[thread 8][gcc -pthread] core/notify.o
[thread 9][gcc -pthread] core/mule.o
[thread 10][gcc -pthread] core/subscription.o
[thread 11][gcc -pthread] core/stats.o
[thread 12][gcc -pthread] core/sendfile.o
[thread 13][gcc -pthread] core/async.o
[thread 14][gcc -pthread] core/master_checks.o
[thread 15][gcc -pthread] core/fifo.o
[thread 16][gcc -pthread] core/offload.o
[thread 17][gcc -pthread] core/io.o
[thread 18][gcc -pthread] core/static.o
[thread 19][gcc -pthread] core/websockets.o
[thread 20][gcc -pthread] core/spooler.o
[thread 21][gcc -pthread] core/snmp.o
[thread 22][gcc -pthread] core/exceptions.o
[thread 24][gcc -pthread] core/config.o
[thread 23][gcc -pthread] core/setup_utils.o
[thread 26][gcc -pthread] core/clock.o
[thread 25][gcc -pthread] core/init.o
[thread 27][gcc -pthread] core/buffer.o
[thread 1][gcc -pthread] core/reader.o
[thread 12][gcc -pthread] core/writer.o
[thread 26][gcc -pthread] core/alarm.o
[thread 8][gcc -pthread] core/cron.o
[thread 23][gcc -pthread] core/hooks.o
[thread 21][gcc -pthread] core/plugins.o
[thread 15][gcc -pthread] core/lock.o
[thread 13][gcc -pthread] core/cache.o
[thread 25][gcc -pthread] core/daemons.o
[thread 19][gcc -pthread] core/errors.o
[thread 22][gcc -pthread] core/hash.o
[thread 14][gcc -pthread] core/master_events.o
[thread 20][gcc -pthread] core/chunked.o
[thread 27][gcc -pthread] core/queue.o
[thread 16][gcc -pthread] core/event.o
[thread 18][gcc -pthread] core/signal.o
[thread 9][gcc -pthread] core/strings.o
[thread 11][gcc -pthread] core/progress.o
[thread 1][gcc -pthread] core/timebomb.o
[thread 0][gcc -pthread] core/ini.o
[thread 8][gcc -pthread] core/fsmon.o
[thread 10][gcc -pthread] core/mount.o
[thread 6][gcc -pthread] core/metrics.o
[thread 24][gcc -pthread] core/plugins_builder.o
[thread 21][gcc -pthread] core/sharedarea.o
[thread 19][gcc -pthread] core/rpc.o
[thread 26][gcc -pthread] core/gateway.o
[thread 22][gcc -pthread] core/loop.o
[thread 12][gcc -pthread] core/cookie.o
[thread 17][gcc -pthread] core/querystring.o
[thread 27][gcc -pthread] core/rb_timers.o
[thread 14][gcc -pthread] core/transformations.o
[thread 20][gcc -pthread] core/uwsgi.o
[thread 15][gcc -pthread] proto/base.o
[thread 11][gcc -pthread] proto/uwsgi.o
[thread 1][gcc -pthread] proto/http.o
[thread 23][gcc -pthread] proto/fastcgi.o
[thread 16][gcc -pthread] proto/scgi.o
[thread 25][gcc -pthread] proto/puwsgi.o
[thread 5][gcc -pthread] lib/linux_ns.o
[thread 0][gcc -pthread] core/zlib.o
[thread 9][gcc -pthread] core/regexp.o
[thread 8][gcc -pthread] core/routing.o
[thread 24][gcc -pthread] core/yaml.o
[thread 18][gcc -pthread] core/ssl.o
[thread 4][gcc -pthread] core/legion.o
[thread 10][gcc -pthread] core/xmlconf.o
[thread 22][gcc -pthread] core/dot_h.o
[thread 17][gcc -pthread] core/config_py.o
*** uWSGI compiling embedded plugins ***
[thread 12][gcc -pthread] plugins/python/python_plugin.o
[thread 19][gcc -pthread] plugins/python/pyutils.o
[thread 26][gcc -pthread] plugins/python/pyloader.o
[thread 2][gcc -pthread] plugins/python/wsgi_handlers.o
[thread 14][gcc -pthread] plugins/python/wsgi_headers.o
[thread 17][gcc -pthread] plugins/python/wsgi_subhandler.o
[thread 22][gcc -pthread] plugins/python/web3_subhandler.o
[thread 11][gcc -pthread] plugins/python/pump_subhandler.o
[thread 27][gcc -pthread] plugins/python/gil.o
[thread 16][gcc -pthread] plugins/python/uwsgi_pymodule.o
[thread 7][gcc -pthread] plugins/python/profiler.o
[thread 25][gcc -pthread] plugins/python/symimporter.o
[thread 21][gcc -pthread] plugins/python/tracebacker.o
[thread 15][gcc -pthread] plugins/python/raw.o
[thread 23][gcc -pthread] plugins/gevent/gevent.o
[thread 5][gcc -pthread] plugins/gevent/hooks.o
[thread 9][gcc -pthread] plugins/ping/ping_plugin.o
[thread 0][gcc -pthread] plugins/cache/cache.o
In file included from plugins/python/pyutils.c:1:0:
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
#include
yum install -y gcc* pcre-devel openssl-devel
yum install -y python-devel
yum install zlib-devel bzip2devel openssl-devel ncurses-devel
yum install libxml*
yum install -y gcc* pcre-devel openssl-devel
yum install python3-deve
[root@localhost ~]# pip3 install uWSGI -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with ‘-m pip‘ instead of running pip directly.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting uWSGI
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c7/75/45234f7b441c59b1eefd31ba3d1041a7e3c89602af24488e2a22e11e7259/uWSGI-2.0.19.1.tar.gz (803 kB)
Collecting some-package
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/a2/d318a685319c3801db1ae0002fc8e095663a55546c62a6e30d9d0fc3289b/some-package-0.1.zip (2.8 kB)
Using legacy ‘setup.py install‘ for some-package, since package ‘wheel‘ is not installed.
Using legacy ‘setup.py install‘ for uWSGI, since package ‘wheel‘ is not installed.
Installing collected packages: uWSGI, some-package
Running setup.py install for uWSGI ... done
Running setup.py install for some-package ... done
Successfully installed some-package-0.1 uWSGI-2.0.19.1
上一篇:数组作为函数参数传递