安装uwsgi的失败信息

来源:8-5 Django uWSGI部署

x3x

2019-05-02

ERROR: Command “/usr/bin/python3 -u -c ‘import setuptools, tokenize;file=’”’"’/tmp/pip-install-znd520k8/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-record-gi4t3pjs/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-znd520k8/uwsgi/

写回答

6回答

x3x

提问者

2019-05-03

Ubuntu python3 pip3 install uwsgi

1
9
x3x
回复
咚咚呛
回复 咚咚呛我源码安装成功了,但是运行报错,root@iZwz9at7nu2rprqr8qtn2oZ:~/uwsgi-2.0.18# uwsgi --http :8000 --wsgi-file uwsgi_test.py The program 'uwsgi' can be found in the following packages: * uwsgi-core * uwsgi-plugin-alarm-curl * uwsgi-plugin-alarm-xmpp * uwsgi-plugin-curl-cron * uwsgi-plugin-emperor-pg * uwsgi-plugin-gccgo * uwsgi-plugin-geoip * uwsgi-plugin-glusterfs * uwsgi-plugin-graylog2 * uwsgi-plugin-jvm-openjdk-8 * uwsgi-plugin-ldap * uwsgi-plugin-lua5.1 * uwsgi-plugin-lua5.2 * uwsgi-plugin-luajit * uwsgi-plugin-mono * uwsgi-plugin-php * uwsgi-plugin-psgi * uwsgi-plugin-python * uwsgi-plugin-python3 * uwsgi-plugin-rack-ruby2.3 * uwsgi-plugin-rados * uwsgi-plugin-router-access * uwsgi-plugin-sqlite3 * uwsgi-plugin-v8 * uwsgi-plugin-xslt Try: apt install root@iZwz9at7nu2rprqr8qtn2oZ:~/uwsgi-2.0.18#
2019-05-03
共9条回复

x3x

提问者

2019-05-03

root@iZwz9at7nu2rprqr8qtn2oZ:/# uwsgi --http-socket :8000 --plugin python --wsgi-file foobar.py

*** Starting uWSGI 2.0.12-debian (64bit) on [Fri May  3 13:22:08 2019] ***

compiled with version: 5.4.0 20160609 on 28 September 2018 15:49:44

os: Linux-4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017

nodename: iZwz9at7nu2rprqr8qtn2oZ

machine: x86_64

clock source: unix

pcre jit disabled

detected number of CPU cores: 1

current working directory: /

detected binary path: /usr/bin/uwsgi-core

uWSGI running as root, you can use --uid/--gid/--chroot options

*** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** 

*** WARNING: you are running uWSGI without its master process manager ***

your processes number limit is 7857

your memory page size is 4096 bytes

detected max file descriptor number: 65535

lock engine: pthread robust mutexes

thunder lock: disabled (you can enable it with --thunder-lock)

uwsgi socket 0 bound to TCP address :8000 fd 3

Python version: 2.7.12 (default, Nov 12 2018, 14:36:49)  [GCC 5.4.0 20160609]

*** Python threads support is disabled. You can enable it with --enable-threads ***

Python main interpreter initialized at 0x12b7200

your server socket listen backlog is limited to 100 connections

your mercy for graceful operations on workers is 60 seconds

mapped 72768 bytes (71 KB) for 1 cores

*** Operational MODE: single process ***

WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x12b7200 pid: 3018 (default app)

*** uWSGI is running in multiple interpreter mode ***

spawned uWSGI worker 1 (and the only) (pid: 3018, cores: 1)

这是成功了吧,老师


0
1
咚咚呛
是的,这样就成功了。
2019-05-03
共1条回复

x3x

提问者

2019-05-03

我的错误和https://blog.csdn.net/persistencequxi/article/details/80773676这个博文的错误是一样的,但是安装包的时候报错E: Unable to locate package uwsgi-plugin-common

0
0

x3x

提问者

2019-05-03

uwsgi: option '--http' is ambiguous; possibilities: '--http-socket' '--https-socket-modifier2' '--https-socket-modifier1' '--https-socket' '--http-socket-modifier2' '--http-socket-modifier1'

getopt_long() error

现在是报这个错误了


0
0

x3x

提问者

2019-05-03

root@iZwz9at7nu2rprqr8qtn2oZ:~/uwsgi-2.0.18# uwsgi --http :8000 --wsgi-file uwsgi_test.py

The program 'uwsgi' can be found in the following packages:

 * uwsgi-core

 * uwsgi-plugin-alarm-curl

 * uwsgi-plugin-alarm-xmpp

 * uwsgi-plugin-curl-cron

 * uwsgi-plugin-emperor-pg

 * uwsgi-plugin-gccgo

 * uwsgi-plugin-geoip

 * uwsgi-plugin-glusterfs

 * uwsgi-plugin-graylog2

 * uwsgi-plugin-jvm-openjdk-8

 * uwsgi-plugin-ldap

 * uwsgi-plugin-lua5.1

 * uwsgi-plugin-lua5.2

 * uwsgi-plugin-luajit

 * uwsgi-plugin-mono

 * uwsgi-plugin-php

 * uwsgi-plugin-psgi

 * uwsgi-plugin-python

 * uwsgi-plugin-python3

 * uwsgi-plugin-rack-ruby2.3

 * uwsgi-plugin-rados

 * uwsgi-plugin-router-access

 * uwsgi-plugin-sqlite3

 * uwsgi-plugin-v8

 * uwsgi-plugin-xslt

Try: apt install <selected package>



0
3
x3x
回复
咚咚呛
可以安装,但是还是运行不了
2019-05-03
共3条回复

咚咚呛

2019-05-03

这个与环境有关,可以提供详细的环境参数和安装命令等信息吗?

0
2
x3x
Ubuntu python3 pip3 install uwsgi
2019-05-03
共2条回复

Django+小程序技术打造微信小程序助手

0到1完整项目实战过程,是难得的Django+小程序全栈项目体验。

991 学习 · 507 问题

查看课程