广告
返回顶部
首页 > 资讯 > 后端开发 > Python >Ubuntu pip3安装uwsgi报错
  • 174
分享到

Ubuntu pip3安装uwsgi报错

报错Ubuntuuwsgi 2023-01-31 05:01:31 174人浏览 安东尼

Python 官方文档:入门教程 => 点击学习

摘要

笔者在ubuntu16.04使用pip3安装uwsgi时报错了,报错信息如下 leslie@leslie-TWS:~$ sudo pip3 ×××tall uwsgi The directory '/home/leslie/.cache/p

笔者在ubuntu16.04使用pip3安装uwsgi时报错了,报错信息如下

leslie@leslie-TWS:~$ sudo pip3 ×××tall uwsgi
The directory '/home/leslie/.cache/pip/Http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/leslie/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting uwsgi
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e7/1e/3Dcca007f974fe4eb369bf1b8629d5e342bb3055e2001b2e5340aaefae7a/uwsgi-2.0.18.tar.gz (801kB)
    100% |████████████████████████████████| 808kB 11.6MB/s 
Installing collected packages: uwsgi
  Running setup.py ×××tall for uwsgi ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4h91sq06/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" ×××tall --record /tmp/pip-qrj8ag9k-record/×××tall-record.txt --single-version-externally-managed --compile:
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'descriptions'
      warnings.warn(msg)
    running ×××tall
    using profile: buildconf/default.ini
    detected include path: ['/usr/lib/GCc/x86_64-linux-gnu/5/include', '/usr/local/include', '/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed', '/usr/include/x86_64-linux-gnu', '/usr/include']
    Patching "bin_name" to properly ×××tall_scripts dir
    detected CPU cores: 4
    configured CFLAGS: -O2 -I. -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_MUTEX -DUWSGI_EVENT_USE_EPOLL -DUWSGI_EVENT_TIMER_USE_TIMERFD -DUWSGI_EVENT_FILEMONITOR_USE_INOTIFY -DUWSGI_VERSION="\"2.0.18\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="18" -DUWSGI_VERSION_REVISION="0" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -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 1][x86_64-linux-gnu-gcc -pthread] core/utils.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/protocol.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/socket.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/logging.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/master.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/master_utils.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/emperor.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/notify.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/mule.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/subscription.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/stats.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/sendfile.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/async.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/master_checks.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/fifo.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/offload.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/io.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/static.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/websockets.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/spooler.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/snmp.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/exceptions.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/config.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/setup_utils.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/clock.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/init.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/buffer.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/reader.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/writer.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/alarm.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/cron.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/hooks.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/plug×××.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/lock.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/cache.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/daemons.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/errors.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/hash.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/master_events.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/chunked.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/queue.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/event.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/signal.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/strings.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/progress.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/timebomb.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/ini.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/fsmon.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/mount.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/metrics.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/plug×××_builder.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/sharedarea.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/rpc.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/gateway.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/loop.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/cookie.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/querystring.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/rb_timers.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] core/transformations.o
    [thread 3][x86_64-linux-gnu-gcc -pthread] core/uwsgi.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] proto/base.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] proto/uwsgi.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] proto/http.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] proto/fastcgi.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] proto/scgi.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] proto/puwsgi.o
    [thread 2][x86_64-linux-gnu-gcc -pthread] lib/linux_ns.o
    [thread 1][x86_64-linux-gnu-gcc -pthread] core/yaml.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/dot_h.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] core/config_py.o
    *** uWSGI compiling embedded plug××× ***
    [thread 2][x86_64-linux-gnu-gcc -pthread] plug×××/python/pyutils.o
    [thread 0][x86_64-linux-gnu-gcc -pthread] plug×××/python/python_plugin.o
    In file included from plug×××/python/python_plugin.c:1:0:
    plug×××/python/uwsgi_python.h:2:20: fatal error: Python.h: 没有那个文件或目录
    compilation terminated.
    In file included from plug×××/python/pyutils.c:1:0:
    plug×××/python/uwsgi_python.h:2:20: fatal error: Python.h: 没有那个文件或目录
    compilation terminated.

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4h91sq06/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" ×××tall --record /tmp/pip-qrj8ag9k-record/×××tall-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-4h91sq06/uwsgi/
You are using pip version 8.1.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip ×××tall --upgrade pip' command.
leslie@leslie-TWS:~$ sudo pip3 un×××tall uwsgi
The directory '/home/leslie/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Cannot un×××tall requirement uwsgi, not ×××talled
The directory '/home/leslie/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
You are using pip version 8.1.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip ×××tall --upgrade pip' command.

最后解决方法如下

sudo apt-get ×××tall -y python3-dev

--结束END--

本文标题: Ubuntu pip3安装uwsgi报错

本文链接: https://www.lsjlt.com/news/189118.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Ubuntu pip3安装uwsgi报错
    笔者在ubuntu16.04使用pip3安装uwsgi时报错了,报错信息如下 leslie@leslie-TWS:~$ sudo pip3 ×××tall uwsgi The directory '/home/leslie/.cache/p...
    99+
    2023-01-31
    报错 Ubuntu uwsgi
  • python pip 安装uwsgi报错
      今天pip install uwsgi 死活装不上,源码也没法装。原来是缺少了python的开发包。  yum install python-devel再pip就 OK了 ,,坑爹啊。。...
    99+
    2023-01-31
    报错 python pip
  • ubuntu如何安装pip3
    ubuntu安装pip3的方法:打开终端命令行。输入以下命令更新源。sudo apt update输入密码进行身份验证。验证成功后,输入以下命令安装pip3即可。sudo apt install python3-pip安装成功后,可使用以下...
    99+
    2022-10-18
  • ubuntu怎么安装pip3
    这篇“ubuntu怎么安装pip3”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“ubuntu怎么安装pip3”文章吧。打开终...
    99+
    2023-07-04
  • 阿里云上安装pip3(Ubuntu)
    安装pip3: 这个简单啊,到网上下载get-pip.py的脚本,然后scp到你的阿里云服务器上,python3 get-pip.py即可。 如果不会scp,哈哈,按照下面的几步: wget https://bootstrap.pypa...
    99+
    2023-01-30
    阿里 Ubuntu
  • python3安装及pip3 报ERROR: No matching distribution found for
    python3 pip Install Error: No matching distribution found for 安装openssl wget https://www.openssl.or...
    99+
    2023-10-20
    python linux 运维
  • ubuntu安装redis报错怎么解决
    这篇“ubuntu安装redis报错怎么解决”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“ubuntu安装redis报错怎么...
    99+
    2023-07-04
  • Ubuntu安装Drupal报错怎么解决
    这篇“Ubuntu安装Drupal报错怎么解决”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来看看这篇“Ubuntu安装Drupal报错...
    99+
    2023-07-04
  • Ubuntu安装Python模块时的报错
    在安装Python的psutil模块时,报“error: command 'x86_64-linux-gnu-gcc' failed with exit status 1”的错误,系统提示缺少Python的头文件,那就是说系统没有安装pyt...
    99+
    2023-01-31
    报错 模块 Ubuntu
  • Ubuntu安装VMwareTools报错怎么解决
    这篇文章主要讲解了“Ubuntu安装VMwareTools报错怎么解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Ubuntu安装VMwareTools报错怎么解决”吧!一、报错如下:二、...
    99+
    2023-07-04
  • Ubuntu怎么安装Python3.7及pip3并切换为默认版本
    今天小编给大家分享一下Ubuntu怎么安装Python3.7及pip3并切换为默认版本的相关知识点,内容详细,逻辑清晰,相信大部分人都还太了解这方面的知识,所以分享这篇文章给大家参考一下,希望大家阅读完这篇文章后有所收获,下面我们一起来了解...
    99+
    2023-07-04
  • Ubuntu中安装ImageMagick报错怎么解决
    这篇文章主要介绍了Ubuntu中安装ImageMagick报错怎么解决的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Ubuntu中安装ImageMagick报错怎么解决文章都会有所收获,下面我们一起来看看吧。发...
    99+
    2023-07-04
  • 部署django项目安装uwsgi出错的解决方法总结
    目录引言1、安装uwsgi错误1:提示pip版本不够2、安装uwsgi错误2:提示root环境下,下载可能会有冲突3、安装uwsgi错误3:#include <Python.h...
    99+
    2022-11-11
  • 解决ubuntu安装软件时,status-code=409报错的问题
    目录报错场景问题描述解决方案步骤1步骤2步骤3总结报错场景 在ubuntu系统中,使用ubuntu software安装软件,存在“status-code=409stat...
    99+
    2022-12-15
    ubuntu安装软件 status-code=409 ubuntu安装软件报错
  • pytorch-cuda安装报错
    2022.12.8在win+cuda11.8下安装最新Pytorch GPU版时遇到包不兼容的问题,该文记录安装的整个流程 一、按照cuda版本在官网找命令 Pytorch官网命令如下 在win...
    99+
    2023-10-03
    pytorch python 深度学习
  • python 安装readline报错
    由于python的命令补全需要使用到readline模块,在安装readline模式时,提示如下错误:/usr/bin/ld: cannot find -lncursescollect2: ld returned 1 exit status...
    99+
    2023-01-31
    报错 python readline
  • windows安装anaconda报错
    Fatal error in launcher: Unable to create process using '"'解决方法:python3 -m pip install --upgrade pip...
    99+
    2023-01-31
    报错 windows anaconda
  • python3.6安装报错ZipImpo
    1.正常安装过程官网下载源码包 tar -zxvf Python-3.6.3.tgz cd Python-3.6.3 ./configure make make install `make install`时报错: zipimport.Zi...
    99+
    2023-01-31
    报错 ZipImpo
  • 安装MySQL-python报错
        _mysql.c: 在函数‘DL_EXPORT’中:    _mysql.c:3058: 错误:expected declaration specifiers before ‘init_mysql’    _mysql.c:3166...
    99+
    2023-01-31
    报错 MySQL python
  • ubuntu下怎么安装mysql并解决ERROR 1698 (28000)报错问题
    这篇“ubuntu下怎么安装mysql并解决ERROR 1698 (28000)报错问题”文章的知识点大部分人都不太理解,所以小编给大家总结了以下内容,内容详细,步骤清晰,具有一定的借鉴价值,希望大家阅读完这篇文章能有所收获,下面我们一起来...
    99+
    2023-07-04
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作