从Azure Databricks笔记本登录Azure ML工作区

问题描述 投票:1回答:3

我正在Azure Databricks集群中编写一个python笔记本来执行Azure机器学习实验。我创建了一个Azure ML工作区并在我的笔记本中实例化工作区对象,如下所示:

id = InteractiveLoginAuthentication(force=False, tenant_id=AzureTenantId)
ws = Workspace(SubscriptionId, ResourceGroupName, WorkspaceName, auth = id)

我正在尝试执行交互式登录到azure访问工作区但是当我运行笔记本时,我收到以下错误。笔记本是用python编写的

Falling back to use azure cli credentials. This fall back to use azure cli credentials will be removed in the next release. 
Make sure your code doesn't require 'az login' to have happened before using azureml-sdk, except the case when you are specifying AzureCliAuthentication in azureml-sdk.
Performing interactive authentication. Please follow the instructions on the terminal.
From cffi callback <function _verify_callback at 0x7f4736825d08>:
Traceback (most recent call last):
  File "/databricks/python/lib/python3.5/site-packages/OpenSSL/SSL.py", line 309, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: module 'lib' has no attribute 'X509_up_ref'

有人可以帮我解决这个问题吗?它真的是一个OpenSSL问题吗?

python-3.x azure-machine-learning-studio azure-databricks
3个回答

0
投票

尝试使用pip install azureml-sdk[databricks]在Azure Databricks集群上安装SDK。 pip extra确保将某些依赖项固定到正确的版本。


0
投票

您需要在群集上安装azureml-sdk [databricks]库。不是azureml-sdk,而是azureml-sdk [databricks]:http://prntscr.com/mpk05g

© www.soinside.com 2019 - 2024. All rights reserved.