如何将python连接到Azure云并创建Azure数据工厂

2024-06-20 15:11:15 发布

您现在位置:Python中文网/ 问答频道 /正文

请帮助我如何使用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

Tags: nonesslbyaccessalertsimpleazureresource
2条回答

这是一个网络问题。请切换到其他网络或尝试配置代理。你知道吗

@user2524829-请按照this文档使用python创建ADF。你知道吗

您所面临的问题可能是由于pip的旧版本造成的。你知道吗

请先尝试运行以下命令:

curl https://bootstrap.pypa.io/get-pip.py | python

相关问题 更多 >