当前位置:论坛首页 > Linux面板 > 求助

一键SSL无法安装插件

发表在 Linux面板2018-1-9 13:54 [复制链接] 2 2642

开启ssl提示,已手动安装pip-py和openssl,还是无法解决
开启失败,无法自动安装pyOpenSSL组件!
请尝试手动安装: pip install pyOpenSSL

ssh 输入pip install pyOpenSSL
返回结果


[root@AMSOVZ1 ~]# pip install pyOpenSSL
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/ ... ureplatformwarning.
  InsecurePlatformWarning
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pyOpenSSL
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/ ... ureplatformwarning.
  InsecurePlatformWarning
  Downloading pyOpenSSL-17.5.0-py2.py3-none-any.whl (53kB)
    100% |################################| 57kB 3.4MB/s
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/lib/python2.6/site-packages (from pyOpenSSL)
Collecting cryptography>=2.1.4 (from pyOpenSSL)
  Downloading cryptography-2.1.4.tar.gz (441kB)
    100% |################################| 442kB 555kB/s
Requirement already satisfied (use --upgrade to upgrade): idna>=2.1 in /usr/lib/python2.6/site-packages (from cryptography>=2.1.4->pyOpenSSL)
Requirement already satisfied (use --upgrade to upgrade): asn1crypto>=0.21.0 in /usr/lib/python2.6/site-packages (from cryptography>=2.1.4->pyOpenSSL)
Requirement already satisfied (use --upgrade to upgrade): enum34 in /usr/lib/python2.6/site-packages (from cryptography>=2.1.4->pyOpenSSL)
Requirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/lib/python2.6/site-packages (from cryptography>=2.1.4->pyOpenSSL)
Installing collected packages: cryptography, pyOpenSSL
  Found existing installation: cryptography 2.1
    Uninstalling cryptography-2.1:
      Successfully uninstalled cryptography-2.1
  Running setup.py install for cryptography
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-NAUDot/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-vafpBl-record/install-record.txt --single-version-externally-managed --compile:
    Couldn't find index page for 'cffi' (maybe misspelled?)
    No local packages or download links found for cffi>=1.7
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-NAUDot/cryptography/setup.py", line 307, in <module>
        **keywords_with_side_effects(sys.argv)
      File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 221, in __init__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 245, in fetch_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 538, in resolve
        dist = best[req.key] = env.best_match(req, self, installer)
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 780, in best_match
        return self.obtain(req, installer) # try and download/install
      File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 792, in obtain
        return installer(requirement)
      File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 293, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 466, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=1.7')
   
    ----------------------------------------
  Rolling back uninstall of cryptography
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-NAUDot/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-vafpBl-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-NAUDot/cryptography

使用道具 举报 只看该作者 回复
发表于 2018-1-10 10:34:30 | 显示全部楼层
什么系统?
使用道具 举报 回复
发表于 2018-2-7 17:09:47 | 显示全部楼层

系统是centos6.9
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表