请帮助我了解如何使用Python连接到Azure云以及如何使用Python创建ADF。我收到以下错误消息: 我收到SSL TLS证书错误
pip install azure-mgmt-resource
Collecting azure-mgmt-resource
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1051)'))': /simple/azure-mgmt-resource/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1051)'))': /simple/azure-mgmt-resource/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1051)'))': /simple/azure-mgmt-resource/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1051)'))': /simple/azure-mgmt-resource/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1051)'))': /simple/azure-mgmt-resource/
Could not fetch URL https://pypi.org/simple/azure-mgmt-resource/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/azure-mgmt-resource/ (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1051)'))) - skipping
Could not find a version that satisfies the requirement azure-mgmt-resource (from versions: )
No matching distribution found for azure-mgmt-resource
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: TLSV1_ALERT_ACCESS_DENIED] tlsv1 alert access denied (_ssl.c:1051)'))) - skipping
答案 0 :(得分:0)
@ user2524829-请遵循this文档以使用python创建ADF。
您面临的问题可能是由于pip的版本过旧。
尝试先运行以下命令:
curl https://bootstrap.pypa.io/get-pip.py | python
答案 1 :(得分:0)
这是网络问题。要么切换到其他网络,要么尝试配置代理。