LNMP 一键脚本 SSL 续期问题-程序员宅基地

技术标签: python  运维  测试  

Had a problem while installing Python package

 

...
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
augeas-lenses is already the newest version.
ca-certificates is already the newest version.
dialog is already the newest version.
gcc is already the newest version.
libaugeas0 is already the newest version.
libffi-dev is already the newest version.
libssl-dev is already the newest version.
python is already the newest version.
python-dev is already the newest version.
python-virtualenv is already the newest version.
virtualenv is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Checking for new version...
Creating virtual environment...
Installing Python packages...
Had a problem while installing Python packages:
Collecting argparse==1.4.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 5))
  Downloading argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 11))
  Downloading pycparser-2.14.tar.gz (223kB)
Collecting cffi==1.4.2 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 14))
  Downloading cffi-1.4.2.tar.gz (365kB)
Collecting ConfigArgParse==0.10.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 31))
  Downloading ConfigArgParse-0.10.0.tar.gz
Collecting configobj==5.0.6 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 33))
  Downloading configobj-5.0.6.tar.gz
Collecting cryptography==1.2.3 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 35))
  Downloading cryptography-1.2.3.tar.gz (373kB)
Collecting enum34==1.1.2 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 57))
  Downloading enum34-1.1.2.tar.gz (46kB)
Collecting funcsigs==0.4 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 60))
  Downloading funcsigs-0.4-py2.py3-none-any.whl
Collecting idna==2.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 63))
  Downloading idna-2.0-py2.py3-none-any.whl (61kB)
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 66))
  Downloading ipaddress-1.0.16-py27-none-any.whl
Collecting linecache2==1.0.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 69))
  Downloading linecache2-1.0.0-py2.py3-none-any.whl
Collecting ndg-httpsclient==0.4.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 72))
  Downloading ndg_httpsclient-0.4.0.tar.gz
Collecting ordereddict==1.1 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 74))
  Downloading ordereddict-1.1.tar.gz
Collecting parsedatetime==2.1 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 76))
  Downloading parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 79))
  Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
Collecting psutil==3.3.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 82))
  Downloading psutil-3.3.0.tar.gz (261kB)
Collecting pyasn1==0.1.9 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 104))
  Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Collecting pyOpenSSL==0.15.1 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 116))
  Downloading pyOpenSSL-0.15.1-py2.py3-none-any.whl (102kB)
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 119))
  Downloading pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 122))
  Downloading python-augeas-0.5.0.tar.gz (90kB)
Collecting python2-pythondialog==3.3.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 124))
  Downloading python2-pythondialog-3.3.0.tar.bz2 (1.8MB)
Collecting pytz==2015.7 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 127))
  Downloading pytz-2015.7-py2.py3-none-any.whl (476kB)
Collecting requests==2.9.1 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 141))
  Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
Collecting six==1.10.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 144))
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 147))
  Downloading traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 150))
  Downloading unittest2-1.1.0-py2.py3-none-any.whl (96kB)
Collecting zope.component==4.2.2 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 153))
  Downloading zope.component-4.2.2.tar.gz (546kB)
Collecting zope.event==4.1.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 155))
  Downloading zope.event-4.1.0.tar.gz (476kB)
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 157))
  Downloading zope.interface-4.1.3.tar.gz (141kB)
Collecting mock==1.0.1 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 175))
  Downloading mock-1.0.1.tar.gz (818kB)
Collecting acme==0.5.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 181))
  Downloading acme-0.5.0-py2.py3-none-any.whl (91kB)
Collecting letsencrypt==0.5.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 184))
  Downloading letsencrypt-0.5.0-py2-none-any.whl (208kB)
Collecting letsencrypt-apache==0.5.0 (from -r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 187))
  Downloading letsencrypt_apache-0.5.0-py2-none-any.whl (100kB)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=1.0 in /home/sebastian/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography==1.2.3->-r /tmp/tmp.ztemUjrFMS/letsencrypt-auto-requirements.txt (line 35))
Installing collected packages: argparse, pycparser, cffi, ConfigArgParse, six, configobj, idna, pyasn1, enum34, ipaddress, cryptography, funcsigs, linecache2, pyOpenSSL, ndg-httpsclient, ordereddict, parsedatetime, pbr, psutil, pytz, pyRFC3339, python-augeas, python2-pythondialog, requests, traceback2, unittest2, zope.interface, zope.event, zope.component, mock, acme, letsencrypt, letsencrypt-apache
  Found existing installation: argparse 1.2.1
    Not uninstalling argparse at /usr/lib/python2.7, outside environment /home/sebastian/.local/share/letsencrypt
  Running setup.py install for pycparser: started
    Running setup.py install for pycparser: finished with status 'done'
  Running setup.py install for cffi: started
    Running setup.py install for cffi: finished with status 'done'
  Running setup.py install for ConfigArgParse: started
    Running setup.py install for ConfigArgParse: finished with status 'done'
  Running setup.py install for configobj: started
    Running setup.py install for configobj: finished with status 'done'
  Running setup.py install for enum34: started
    Running setup.py install for enum34: finished with status 'done'
  Running setup.py install for cryptography: started
    Running setup.py install for cryptography: still running...
    Running setup.py install for cryptography: finished with status 'done'
  Running setup.py install for ndg-httpsclient: started
    Running setup.py install for ndg-httpsclient: finished with status 'done'
  Running setup.py install for ordereddict: started
    Running setup.py install for ordereddict: finished with status 'done'
  Running setup.py install for psutil: started
    Running setup.py install for psutil: finished with status 'error'
    Complete output from command /home/sebastian/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-PU8zkR/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-ulwIP3-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/sebastian/.local/share/letsencrypt/include/site/python2.7/psutil:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-2.7
    creating build/lib.linux-armv7l-2.7/psutil
    copying psutil/_pswindows.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/_common.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/__init__.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/_pslinux.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/_psposix.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/_psbsd.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/_psosx.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/_compat.py -> build/lib.linux-armv7l-2.7/psutil
    copying psutil/_pssunos.py -> build/lib.linux-armv7l-2.7/psutil
    running build_ext
    building 'psutil._psutil_linux' extension
    creating build/temp.linux-armv7l-2.7
    creating build/temp.linux-armv7l-2.7/psutil
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DPSUTIL_VERSION=330 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-armv7l-2.7/psutil/_psutil_linux.o
    In file included from psutil/_psutil_linux.c:24:0:
    /usr/include/linux/sockios.h:1:1: error: expected identifier or ‘(’ before ‘/’ token
     /
     ^
    /usr/include/linux/sockios.h:4:2: error: stray ‘�’ in program
      *  oxe�ating system.  INET is imp,emented using the  BSD Socket
      ^
    /usr/include/linux/sockios.h:5:2: error: stray ‘�’ in program
      *  inuer&�ce as the means mf cnmmUnication with2the$uceR levdl.
      ^
    /usr/include/linux/sockios.h:7:2: error: stray ‘�’ in program
      *) Definhtiofc of The sogket-leV�h I/O cmntroL caLlw.
      ^
    /usr/include/linux/sockios.h:8:1: error: stray ‘�’ in program
     �*
     ^
    /usr/include/linux/sockios.h:9:2: error: stray ‘`’ in program
      *`Ver�ion: @,#)sockios.h 1.0.2 07/09/93
      ^
    /usr/include/linux/sockios.h:9:2: error: stray ‘�’ in program
    /usr/include/linux/sockios.h:9:13: error: stray ‘@’ in program
      *`Ver�ion: @,#)sockios.h 1.0.2 07/09/93
                 ^
    /usr/include/linux/sockios.h:9:15: error: stray ‘#’ in program
      *`Ver�ion: @,#)sockios.h 1.0.2 07/09/93
                   ^
    /usr/include/linux/sockios.h:9:27: error: too many decimal points in number
      *`Ver�ion: @,#)sockios.h 1.0.2 07/09/93
                               ^
    /usr/include/linux/sockios.h:9:36: error: invalid digit "9" in octal constant
      *`Ver�ion: @,#)sockios.h 1.0.2 07/09/93
                                        ^
    /usr/include/linux/sockios.h:10:1: error: stray ‘�’ in program
     $** * Auth�rs; Ross Biro
     ^
    /usr/include/linux/sockios.h:10:16: error: unknown type name ‘Ross’
     $** * Auth�rs; Ross Biro
                    ^
    /usr/include/linux/sockios.h:11:2: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
      *  Bred N. van Kempen,$<wa
                                [email protected]>
      ^
    /usr/include/linux/sockios.h:11:32: error: stray ‘@’ in program
      *  Bred N. van Kempen,$<wa
                                [email protected]>
                                    ^
    /usr/include/linux/sockios.h:12:2: error: stray ‘�’ in program
      +�
      ^
    /usr/include/linux/sockios.h:13:2: error: stray ’ in program
     This�program")s$free software; you cen redistsibu4e it andor
      ^
    /usr/include/linux/sockios.h:13:2: error: stray ‘�’ in program
    /usr/include/linux/sockios.h:13:2: error: missing terminating " character
    /usr/include/linux/sockios.h:14:1: error: missing terminating " character
     "*  moDify i� }nde� the terms of dhe GNU0Ggneral Public L9gunse
     ^
    /usr/include/linux/sockios.h:15:2: error: stray ‘�’ in program
    as$pujlish%d by the Free Softvare Foundation; either Version
      ^
    /usr/include/linux/sockios.h:16:47: error: unknown type name ‘either’
     !*  6 of tle`License, or (at 9mur nptiOn)$any later`version.
                                                   ^
    /usr/include/linux/sockios.h:17:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘!’ token
      *
     ^
    /usr/include/linux/sockios.h:17:1: error: stray ‘`’ in program
    /usr/include/linux/sockios.h:17:30: error: invalid suffix "mur" on integer constant
      *
                                  ^
    /usr/include/linux/sockios.h:17:1: error: stray ‘`’ in program
      *
     ^
    /usr/include/linux/sockios.h:18:2: error: stray ‘’ in program
     'iffdff �LINUX_Q�KIOS_H
      ^
    /usr/include/linux/sockios.h:19:1: error: missing terminating ' character
     #dufyne _LINUZ_SOCOIOS_H
     ^
    /usr/include/linux/sockios.h:20:2: error: invalid preprocessing directive #dufyne

      ^
    /usr/include/linux/sockios.h:22:2: error: invalid preprocessing directive #inclu
     J/
      ^
    /usr/include/linux/sockios.h:24:2: error: stray ‘�’ in program
     #define$SIOCINQ  FIONSEAD
      ^
    /usr/include/linux/sockios.h:25:2: error: invalid preprocessing directive #define$SIOCINQ
     #def)ne SIO�OUTQ T�OCOUTQ        /* gu�p�t!qugue siXe (not sent + not acked) */
      ^
    /usr/include/linux/sockios.h:26:2: error: invalid preprocessing directive #def

      ^
    /usr/include/linux/sockios.h:29:2: error: invalid preprocessing directive #t
     #define SIO�DELRT 0x890C  /* delEte routing tabde entry
      ^
    /usr/include/linux/sockios.h:151:2: error: #endif without #if
    In file included from /usr/include/linux/if.h:23:0,
                     from psutil/_psutil_linux.c:25:
    /usr/include/linux/socket.h:14:2: error: unknown type name ‘__kernel_sa_family_t’
      __kernel_sa_family_t ss_family;  /* address family */
      ^
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/sebastian/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-PU8zkR/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-ulwIP3-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/sebastian/.local/share/letsencrypt/include/site/python2.7/psutil" failed with error code 1 in /tmp/pip-build-PU8zkR/psutil
You are using pip version 8.0.3, however version 8.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

 

只要修改了 PIP 的源就可以了 

vim ~/.pip/pip.conf

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

 

转载于:https://my.oschina.net/u/3111345/blog/1617085

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_34396902/article/details/92375854

智能推荐

RAID0/1/5/6/10/50/JBOD如何选择_jbod ugood使用哪个好-程序员宅基地

文章浏览阅读9k次。曾经写过一遍文章讲解过RAID各版本的功能,但很多朋友明白了技术知识,但却不知道如何选择_jbod ugood使用哪个好

eclipse实现既能编写Java代码和又能编写python代码(eclipse实现编写python详细流程)_如何写python的同时又可以写java-程序员宅基地

文章浏览阅读1.2k次,点赞2次,收藏2次。此为原创,若转载,请注明!!!!问题提出大家是否有过这样的困惑,在大学期间电脑里装了很多的编程软件,那有没有一个能集成的勒?解决方案用eclipse即可实现既能编写Java、Java EE、还能编写python。同时再结合anaconda 3.5.2(python3.6)简直不要太爽。强烈推荐anaconda 3.5.2!!!! 可以查看我的另一博客教程进行安装anaconda安装详解...._如何写python的同时又可以写java

C# 三层架构编写员工信息管理系统_基于c#的员工信息管理系统-程序员宅基地

文章浏览阅读1.5k次。C# 三层架构编写员工信息管理系统首先感谢B站某up主的学习资源。DAL与数据库进行交互,获取数据。封装了三种获取数据的方法(1)获取整张表的数据(2)查找某个字段,并返回是否存在(3)用于增删改,返回受影响对象BLL调用DAL层数据,由于信息管理系统不需要对数据进行再处理,因此在此例中直接将数据传给UI层。UI数据进行显示本案例是基于三成架构和数据库的实战案例,具有查找员工信息,添加删除员工,绩效打分等功能。..._基于c#的员工信息管理系统

Vue项目首次加载慢的优化方法_vue首屏加载慢优化方案-程序员宅基地

文章浏览阅读5.5k次。Vue组件按需加载,用v-if代替v-show图片延迟加载,等页面主体加载好后,再加载_vue首屏加载慢优化方案

安卓打包APK so丢失,强制加入方法_apk应用安装好,少一个so,如果放讲去?-程序员宅基地

文章浏览阅读1.5k次。build.gradle文件里加入:android { //打包apk的时候添加.so文件 task nativeLibsToJar(type: Zip, description: "create a jar archive of the native libs") { destinationDir file("$projectDir/libs")_apk应用安装好,少一个so,如果放讲去?

Eclipse安装包 百度网盘_eclipse安装包百度网盘-程序员宅基地

文章浏览阅读2.8w次,点赞24次,收藏19次。我自己在官网下的一直有问题,打不开,分享一个百度云资源,永久有效链接:https://pan.baidu.com/s/1wqs9sTPVfBJTpYlu312kWw提取码:0c5p复制这段内容后打开百度网盘手机App,操作更方便哦网上很多教程,大部分不详细或者是有问题,我的收藏夹Java里有一个非常详细的教程..._eclipse安装包百度网盘

随便推点

Error: No such file or directory @ rb_sysopen_no such file or directory @ rb_sysopen - /users/dh-程序员宅基地

文章浏览阅读7.1k次,点赞4次,收藏3次。因为mac下的phpstorm需要用到PlantUML,然后需要brew install graphviz报错:==> Pouring [email protected]_1.big_sur.bottle.tar.gzError: No such file or directory @ rb_sysopen - /Users/*****/Library/Caches/Homebrew/downloads/8049a4964d208b824a1a66fcb90a9a07d6a17033b8_no such file or directory @ rb_sysopen - /users/dhadmin/library/caches/homeb

c语言给日期算星期,已知日期,算改日是星期几-程序员宅基地

文章浏览阅读388次。已知日期,算改天是星期几?我的思想是这样的:以公元0年1月1日星期天为基准,算出要求的日期与该日期的天数差,然后再对7求模。余数为0:星期天余数为1:星期一余数为2:星期二余数为3:星期三余数为4:星期四余数为5:星期五但是这个程序算出来的的星期数总会比当前星期数多1,麻烦各位帮我看看,谢谢。#include#include#include#include#includei..._c语言日期转星期

[实战Google深度学习框架]Tensorflow(7)自然语言处理_nlp sos_id-程序员宅基地

文章浏览阅读1.6k次,点赞3次,收藏3次。本篇blog主要以code+markdown的形式介绍tf这本实战书。(建议使用jupyter来学习)第九章 自然语言处理 9.1 语言模型的背景知识 9.2 神经语言模型 9.3 神经网络机器翻译 9.1 语言模型的背景知识9.1.1 语言模型简介把句子看成单词的序列,语言模型可以表示为一个计算的模型。 生成自然语言文本的应用依赖语言模型来优化输出文..._nlp sos_id

【汇智学堂】-Hadoop分布式集群准备工作-12(配置计算框架mapred-site.xml)_配置mapred-site.xml之前,有其他内容吗,-程序员宅基地

文章浏览阅读431次。配置计算框架mapred-site.xml步骤一:vim mapred-site.xml将下面的内容写入。<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="configuration.xsl"?> mapreduce.framework.name yarn ..._配置mapred-site.xml之前,有其他内容吗,

编译原理 实验4 语义分析(基于PL/0,使用C++代码编写)_编译原理语义分析实验代码-程序员宅基地

文章浏览阅读7.8k次,点赞12次,收藏117次。1 实验任务审查每一个语法结构的静态语义,即验证语法正确的结构是否有意义。此部分不再借助已有工具,需手写代码来完成。2 实验内容(1)实验要求你的程序需要对输入文件进行语义分析并检查错误进行输出。(2)输入格式一个包含源代码的文本文件,程序需要能够接收一个输入文件名作为参数。(3)输出格式要求通过标准输出打印程序的运行结果。对于那些没有语义错误的输入文件,你的程序不需要输出任何内容。对于那些存在语义错误的输入文件,你的程序应当输出相应的错误信息,这些信息包括错误类型、出错的行号以及说明文字,_编译原理语义分析实验代码

盛金公式(一元三次方程的解)-程序员宅基地

文章浏览阅读2.3k次,点赞2次,收藏3次。_盛金公式

推荐文章

热门文章

相关标签