本文介绍了点错误-找不到满足junos-eznc要求的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ansible需要Python junos-eznc模块:

Ansible requires Python junos-eznc module:

可以使用pip install junos-eznc

但是,当运行sudo pip install junos-eznc时-我得到了:

However, when running sudo pip install junos-eznc - I get this:

Collecting junos-eznc
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/connection.py:279: SystemTimeWarning: System time is way off (before 2014-01-01). This will probably lead to SSL verification errors
  SystemTimeWarning
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Could not fetch URL https://pypi.python.org/simple/junos-eznc/: There was a problem confirming the ssl certificate: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed - skipping
  Could not find a version that satisfies the requirement junos-eznc (from versions: )
No matching distribution found for junos-eznc

有人能指出我正确的方向吗?

Can anyone point me in the right direction?

我确实找到了这篇文章: https://github.com/Homebrew/legacy -homebrew/issues/41253

I did find this article: https://github.com/Homebrew/legacy-homebrew/issues/41253

我尝试重命名文件,但仍然没有运气:

I tried renaming my files and still no luck:

]$ls
ca-bundle999.crt  ca-bundle999.trust.crt  ca-bundle.jks  exim.pem  localhost.crt  make-dummy-cert  Makefile  renew-dummy-cert

推荐答案

您收到的警告消息是:

您确实会收到SSL验证错误:

And you indeed get the SSL verification error:

解决方案::将系统日期更改为当前日期.

Solution: change the system date to current.

您还会收到两个警告(可能是非严重警告),并提出升级Python的建议:

You also get two warnings (likely non-critical) with a suggestion to upgrade your Python:

解决方案::升级Python.

Solution: upgrade the Python.

这篇关于点错误-找不到满足junos-eznc要求的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 22:28