Я пытаюсь установить пакет reports_ntlm.Если я пытаюсь использовать следующую команду, я все равно получаю сообщение об ошибке SSL:
pip install --trusted-host pypi.python.org --proxy http://username:password@site.address:port requests_ntlm
Я пытался добавить --index-url=http://pypi.python.org/simple/
, изменив URL-адрес доверенного и индексного URL-адреса на http: /pypi.python.org, https: pypi.org, http://pypi.python.org/, http://pypi.python.org/pypi/ но я получаю тот же результат.
, включая -v
, возвращает следующее:
pip install --trusted-host pypi.python.org --proxy http://username@password@site.address:port -v requests_ntlm
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Collecting requests_ntlm
1 location(s) to search for versions of requests-ntlm:
* https://pypi.python.org/simple/requests-ntlm/
Getting page https://pypi.python.org/simple/requests-ntlm/
Starting new HTTPS connection (1): pypi.python.org
https://pypi.python.org:443 "GET /simple/requests-ntlm/ HTTP/1.1" 301 122
Looking up "https://pypi.org/simple/requests-ntlm/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.org
Incremented Retry for (url='/simple/requests-ntlm/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),)': /simple/requests-ntlm/
Starting new HTTPS connection (2): pypi.org
Incremented Retry for (url='/simple/requests-ntlm/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),)': /simple/requests-ntlm/
Starting new HTTPS connection (3): pypi.org
Incremented Retry for (url='/simple/requests-ntlm/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),)': /simple/requests-ntlm/
Starting new HTTPS connection (4): pypi.org
Incremented Retry for (url='/simple/requests-ntlm/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),)': /simple/requests-ntlm/
Starting new HTTPS connection (5): pypi.org
Incremented Retry for (url='/simple/requests-ntlm/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),)': /simple/requests-ntlm/
Starting new HTTPS connection (6): pypi.org
Could not fetch URL https://pypi.python.org/simple/requests-ntlm/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/requests-ntlm/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),)) - skipping
Could not find a version that satisfies the requirement requests_ntlm (from versions: )
Cleaning up...
No matching distribution found for requests_ntlm
Thisвопрос похож на этот вопрос но с той разницей, что я пробовал популярный ответ на добавление --trusted-host
У кого-нибудь есть идеи, почему?