【问题标题】:Azure Data Studio Machine Learning - Python and R Packages not being recognizedAzure Data Studio 机器学习 - 无法识别 Python 和 R 包
【发布时间】:2021-09-01 00:07:25
【问题描述】:

我正在设置运行机器学习扩展的 Azure Data Studio (ADS) 1.29,以在 Win2016 中管理 SQL 2019 机器学习服务。运行 ADS 的原因是我可以通过 ADS 将 Python 和 R 包安装到 SQL MLS 中。最终,我们将针对 Azure SQL 托管实例 (MI) 使用它。

我已经在服务器上配置了 SQL 2019 MLS 安装的默认 Python 和 R 目录,作为我在 Settings\Extensions\Machine Learning 中的 Python 和 R 机器学习路径。

当我转到 ADS 机器学习扩展并单击“管理包”时,我得到了这些我无法解决的错误:

"the following R packages are required to be installed vctrs, odbc , sqlmlutils"

这些 R 包已确认安装在 SQL Server 中。 不确定如何检查它们是否安装在 ADS 中?

"the following python packages are required to be installed sqlmlutils==1.0.3"

这些 Python 包已确认安装在 ADS 和 SQL 服务器中。

"Failed to complete task 'Verifying package management dependencies' : Error invalid selection. 

上面的这个错误似乎是前两个错误的结果。

我已尝试在新目录等中重新安装 ADS,但没有成功。

任何帮助表示赞赏....

【问题讨论】:

    标签: sql-server-2019 azure-data-studio


    【解决方案1】:

    解决方案:

    当你配置 ADS 时它会出现,它需要这个非常具体的配置,一直到 .exe 名称

    机器学习:Python 路径:

    C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\PYTHON_SERVICES\python.exe
    

    机器学习:R 路径:

    C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\R_SERVICES\bin\R.exe
    

    如果需要,请为 Python 安装此 SSL 解决方法 https://sourceforge.net/projects/openssl-for-windows/

    file is   :   Win64OpenSSL_Light-1_1_1k.msi
    

    您还需要按照这些说明安装 odbc 和 sqlmlutils:

    https://github.com/microsoft/sqlmlutils/blob/master/R/README.md
    
    Windows
    
    Download the latest release from https://github.com/microsoft/sqlmlutils/releases:
    
    From command prompt in directory where R.exe resides , run
    
    R.exe -e "install.packages('odbc')"
    R.exe CMD INSTALL sqlmlutils_1.0.0.zip
    

    所有这些安装并运行后,您应该会看到一个选项来管理机器学习扩展中的 Python 和 R 包。

    我们还发现,在您转到 ADS 版本 1.31.0 或更高版本之前,无法将 R 包安装在 SQL 托管实例或本地部署中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多