侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

使用pip安装必要的ansible依赖包时遇到的问题

2023-12-14 星期四 / 0 评论 / 0 点赞 / 92 阅读 / 36013 字

系统环境: OS:centos7 python: 2.7.5 [root@lnmp-1 source]# pip install paramikoCollecting paramiko Using

系统环境:

OS:centos7
python: 2.7.5 

[root@lnmp-1 source]# pip install paramikoCollecting paramiko  Using cached paramiko-2.0.2-py2.py3-none-any.whlCollecting cryptography>=1.1 (from paramiko)  Using cached cryptography-1.5.2.tar.gzRequirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/lib/python2.7/site-packages (from paramiko)Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko)Installing collected packages: cryptography, paramiko  Found existing installation: cryptography 0.8.2    Uninstalling cryptography-0.8.2:      Successfully uninstalled cryptography-0.8.2  Running setup.py install for cryptography ... error    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-IAGD53/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('/r/n', '/n'), __file__, 'exec'))" install --record /tmp/pip-0JgAST-record/install-record.txt --single-version-externally-managed --compile:    running install    running build    running build_py    creating build    creating build/lib.linux-x86_64-2.7    creating build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography    creating build/lib.linux-x86_64-2.7/cryptography/hazmat    copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat    creating build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto    copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto    copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces    copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    running egg_info    writing requirements to src/cryptography.egg-info/requires.txt    writing src/cryptography.egg-info/PKG-INFO    writing top-level names to src/cryptography.egg-info/top_level.txt    writing dependency_links to src/cryptography.egg-info/dependency_links.txt    writing entry points to src/cryptography.egg-info/entry_points.txt    warning: manifest_maker: standard file '-c' not found    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'    reading manifest template 'MANIFEST.in'    no previously-included directories found matching 'docs/_build'    warning: no previously-included files matching '*' found under directory 'vectors'    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'    running build_ext    generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'    creating build/temp.linux-x86_64-2.7    generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'    generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'    building '_openssl' extension    creating build/temp.linux-x86_64-2.7/build    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o    build/temp.linux-x86_64-2.7/_openssl.c:12:24: 致命错误:pyconfig.h:没有那个文件或目录     #  include <pyconfig.h>                            ^    编译中断。    error: command 'gcc' failed with exit status 1    ----------------------------------------  Rolling back uninstall of cryptographyCommand "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-IAGD53/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('/r/n', '/n'), __file__, 'exec'))" install --record /tmp/pip-0JgAST-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-IAGD53/cryptography/[root@lnmp-1 source]# yum install python-devel已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.com正在解决依赖关系--> 正在检查事务---> 软件包 python-devel.x86_64.0.2.7.5-39.el7_2 将被 安装--> 解决依赖关系完成依赖关系解决============================================================================================================================================================================================================================================== Package                                                     架构                                                  版本                                                          源                                                      大小==============================================================================================================================================================================================================================================正在安装: python-devel                                                x86_64                                                2.7.5-39.el7_2                                                updates                                                392 k事务概要==============================================================================================================================================================================================================================================安装  1 软件包总下载量:392 k安装大小:1.0 MIs this ok [y/d/N]: yDownloading packages:python-devel-2.7.5-39.el7_2.x86_64.rpm                                                                                                                                                                                 | 392 kB  00:00:00Running transaction checkRunning transaction testTransaction test succeededRunning transaction  正在安装    : python-devel-2.7.5-39.el7_2.x86_64                                                                                                                                                                                        1/1  验证中      : python-devel-2.7.5-39.el7_2.x86_64                                                                                                                                                                                        1/1已安装:  python-devel.x86_64 0:2.7.5-39.el7_2完毕![root@lnmp-1 source]# pip install paramikoCollecting paramiko  Using cached paramiko-2.0.2-py2.py3-none-any.whlCollecting cryptography>=1.1 (from paramiko)  Using cached cryptography-1.5.2.tar.gzRequirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/lib/python2.7/site-packages (from paramiko)Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko)Installing collected packages: cryptography, paramiko  Found existing installation: cryptography 0.8.2    Uninstalling cryptography-0.8.2:      Successfully uninstalled cryptography-0.8.2  Running setup.py install for cryptography ... error    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-E9Ze6t/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('/r/n', '/n'), __file__, 'exec'))" install --record /tmp/pip-mNMvvn-record/install-record.txt --single-version-externally-managed --compile:    running install    running build    running build_py    creating build    creating build/lib.linux-x86_64-2.7    creating build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/__about__.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/__init__.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/exceptions.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/fernet.py -> build/lib.linux-x86_64-2.7/cryptography    copying src/cryptography/utils.py -> build/lib.linux-x86_64-2.7/cryptography    creating build/lib.linux-x86_64-2.7/cryptography/hazmat    copying src/cryptography/hazmat/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat    creating build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/extensions.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/general_name.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/name.py -> build/lib.linux-x86_64-2.7/cryptography/x509    copying src/cryptography/x509/oid.py -> build/lib.linux-x86_64-2.7/cryptography/x509    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    copying src/cryptography/hazmat/backends/multibackend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    copying src/cryptography/hazmat/primitives/serialization.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/openssl    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto    copying src/cryptography/hazmat/bindings/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto    copying src/cryptography/hazmat/bindings/commoncrypto/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/commoncrypto    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/bindings/openssl    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/asymmetric    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/ciphers    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces    copying src/cryptography/hazmat/primitives/interfaces/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/interfaces    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/kdf    creating build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/primitives/twofactor    running egg_info    writing requirements to src/cryptography.egg-info/requires.txt    writing src/cryptography.egg-info/PKG-INFO    writing top-level names to src/cryptography.egg-info/top_level.txt    writing dependency_links to src/cryptography.egg-info/dependency_links.txt    writing entry points to src/cryptography.egg-info/entry_points.txt    warning: manifest_maker: standard file '-c' not found    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'    reading manifest template 'MANIFEST.in'    no previously-included directories found matching 'docs/_build'    warning: no previously-included files matching '*' found under directory 'vectors'    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'    running build_ext    generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'    creating build/temp.linux-x86_64-2.7    generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'    generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'    building '_openssl' extension    creating build/temp.linux-x86_64-2.7/build    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o    build/temp.linux-x86_64-2.7/_openssl.c:433:30: 致命错误:openssl/opensslv.h:没有那个文件或目录     #include <openssl/opensslv.h>                                  ^    编译中断。    error: command 'gcc' failed with exit status 1    ----------------------------------------  Rolling back uninstall of cryptographyCommand "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-E9Ze6t/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('/r/n', '/n'), __file__, 'exec'))" install --record /tmp/pip-mNMvvn-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-E9Ze6t/cryptography/[root@lnmp-1 source]# yum install libssl-dev已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.com没有可用软件包 libssl-dev。错误:无须任何处理[root@lnmp-1 source]# yum install libssl-dev已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.com没有可用软件包 libssl-dev。错误:无须任何处理[root@lnmp-1 source]# yum install openssl-devel已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.com正在解决依赖关系--> 正在检查事务---> 软件包 openssl-devel.x86_64.1.1.0.1e-51.el7_2.7 将被 安装--> 解决依赖关系完成依赖关系解决============================================================================================================================================================================================================================================== Package                                                    架构                                                版本                                                               源                                                    大小==============================================================================================================================================================================================================================================正在安装: openssl-devel                                              x86_64                                              1:1.0.1e-51.el7_2.7                                                updates                                              1.2 M事务概要==============================================================================================================================================================================================================================================安装  1 软件包总下载量:1.2 M安装大小:2.2 MIs this ok [y/d/N]: yDownloading packages:openssl-devel-1.0.1e-51.el7_2.7.x86_64.rpm                                                                                                                                                                             | 1.2 MB  00:00:00Running transaction checkRunning transaction testTransaction test succeededRunning transaction  正在安装    : 1:openssl-devel-1.0.1e-51.el7_2.7.x86_64                                                                                                                                                                                  1/1  验证中      : 1:openssl-devel-1.0.1e-51.el7_2.7.x86_64                                                                                                                                                                                  1/1已安装:  openssl-devel.x86_64 1:1.0.1e-51.el7_2.7完毕![root@lnmp-1 source]# pip install paramikoCollecting paramiko  Using cached paramiko-2.0.2-py2.py3-none-any.whlCollecting cryptography>=1.1 (from paramiko)  Using cached cryptography-1.5.2.tar.gzRequirement already satisfied (use --upgrade to upgrade): pyasn1>=0.1.7 in /usr/lib/python2.7/site-packages (from paramiko)Requirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from cryptography>=1.1->paramiko)Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko)Installing collected packages: cryptography, paramiko  Found existing installation: cryptography 0.8.2    Uninstalling cryptography-0.8.2:      Successfully uninstalled cryptography-0.8.2  Running setup.py install for cryptography ... doneSuccessfully installed cryptography-1.5.2 paramiko-2.0.2                      

 

广告 广告

评论区