你好,返回得是:
[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 |