Azure Data Studio 机器学习 - Python 和 R 包未被识别

Azure Data Studio Machine Learning - Python and R Packages not being recognized

我正在设置 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学习中的Python和R机器学习路径.

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

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

这些 R 包已确认安装在 SQL 服务器中。 不确定您如何检查它们是否安装在 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. 

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

我已经尝试在新目录等中重新安装 ADS,但这没有用。

感谢任何帮助....

解决方案:

当您配置 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 或更高版本之前,无法在 SQL MAnaged Instance 或 On Prem 中安装 R 包。