Ошибка Pip - не удалось найти версию, которая удовлетворяет требованию junos-eznc
Ansible требует Python junos-eznc
модуль:
junos-eznc> = 1.2.2 требуется, но, похоже, не установлен.
Может быть установлен с помощью
pip install junos-eznc
Однако при запуске sudo pip install junos-eznc
- Я понимаю это:
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
Может кто-то указать мне верное направление?
Я нашел эту статью: https://github.com/Homebrew/legacy-homebrew/issues/41253
Я попытался переименовать мои файлы, но все равно не повезло:
]$ls
ca-bundle999.crt ca-bundle999.trust.crt ca-bundle.jks exim.pem localhost.crt make-dummy-cert Makefile renew-dummy-cert
1 ответ
Вы получите предупреждение:
Системное время отключено (до 2014-01-01). Это, вероятно, приведет к ошибкам проверки SSL
И вы действительно получаете ошибку проверки SSL:
сертификат не удался
Решение: изменить системную дату на текущую.
Вы также получите два предупреждения (вероятно, некритических) с предложением обновить ваш Python:
Вы можете перейти на более новую версию Python, чтобы решить эту проблему.
Решение: обновить Python.