请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装uwsgi的失败信息

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/

正在回答 回答被采纳积分+3

6回答

提问者 x3x 2019-05-03 00:10:34

Ubuntu python3 pip3 install uwsgi

1 回复 有任何疑惑可以回复我~
  • 之前装python环境是怎么装的呢?
    回复 有任何疑惑可以回复我~ 2019-05-03 00:15:22
  • 提问者 x3x #2
    我有两个版本,Python是源码安装的。
    回复 有任何疑惑可以回复我~ 2019-05-03 00:17:10
  • 提问者 x3x #3
    python3是源码安装的
    回复 有任何疑惑可以回复我~ 2019-05-03 00:17:43
提问者 x3x 2019-05-03 13:23:13

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 回复 有任何疑惑可以回复我~
  • 是的,这样就成功了。
    回复 有任何疑惑可以回复我~ 2019-05-03 14:04:47
提问者 x3x 2019-05-03 12:57:17

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

0 回复 有任何疑惑可以回复我~
提问者 x3x 2019-05-03 12:42:56

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 回复 有任何疑惑可以回复我~
提问者 x3x 2019-05-03 12:20:25

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 回复 有任何疑惑可以回复我~
  • 提问者 x3x #1
    这个是什么意思啊?老师。
    回复 有任何疑惑可以回复我~ 2019-05-03 12:20:55
  • 咚咚呛 回复 提问者 x3x #2
    这没有安装成功吧?他提示uwsgi在这些包里面,需要使用apt来安装,你输入命令apt install uwsgi-core看看能不能安装
    回复 有任何疑惑可以回复我~ 2019-05-03 12:37:15
  • 提问者 x3x 回复 咚咚呛 #3
    可以安装,但是还是运行不了
    回复 有任何疑惑可以回复我~ 2019-05-03 12:41:12
咚咚呛 2019-05-03 00:08:46

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

0 回复 有任何疑惑可以回复我~
  • 提问者 x3x #1
    是这个吗?
    回复 有任何疑惑可以回复我~ 2019-05-03 00:11:28
  • 提问者 x3x #2
    Ubuntu python3 pip3 install uwsgi
    回复 有任何疑惑可以回复我~ 2019-05-03 00:11:51
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信