Skip to content

Commit dcba41e

Browse files
authored
Update sql-machine-learning-services-windows-install-sql-2022.md
Further updates to installing python. The existing link to the downloads now only goes to a page where it says the files aren't available. The link that I've provided is to the same site but gets you to a page with the release that's required. Also, earlier today, I suggested a change to the command for installing R. Similar changes are needed for Python when using named instances. The instructions as shown would not work. And it's not obvious how to put the name of the named instance into the commands. I find most people are trying ".\SQLEXPRESS" or "MACHINENAME\SQLEXPRESS", neither of which will work.
1 parent a0b3ff0 commit dcba41e

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎docs/machine-learning/install/sql-machine-learning-services-windows-install-sql-2022.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Beginning with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], runtimes f
136136
137137
#### Install Python runtime
138138
139-
1. Download the most recent version of [Python 3.10 for Windows](https://www.python.org/downloads/). Install it by using the following options:
139+
1. Download the most recent version of [Python 3.10 for Windows](https://www.python.org/downloads/release/python-3100/). Install it by using the following options:
140140
141141
1. Open the Python Setup application and select **Customize installation**.
142142
1. Verify that the **Install launcher for all users (recommended)** checkbox is selected.
@@ -159,6 +159,12 @@ Beginning with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], runtimes f
159159
icacls "C:\Program Files\Python310\Lib\site-packages" /grant "NT Service\MSSQLLAUNCHPAD":(OI)(CI)RX /T
160160
icacls "C:\Program Files\Python310\Lib\site-packages" /grant *S-1-15-2-1:(OI)(CI)RX /T
161161
```
162+
Note: if you have installed SQL Server as a named service, you will need to check the name of hte launchpad service account. You can do that by running services.msc and checking the account that the SQL Server Launchpad Service is running as. For example, if you have a default installation of SQL Server Express edition, you would need to use these commands instead:
163+
164+
```cmd
165+
icacls "C:\Program Files\Python310\Lib\site-packages" /grant "NT Service\MSSQLLAUNCHPAD$SQLEXPRESS":(OI)(CI)RX /T
166+
icacls "C:\Program Files\Python310\Lib\site-packages" /grant *S-1-15-2-1:(OI)(CI)RX /T
167+
```
162168
163169
#### Configure Python runtime with SQL Server
164170
@@ -170,6 +176,12 @@ Beginning with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], runtimes f
170176
cd "C:\Program Files\Python310\Lib\site-packages\revoscalepy\rxLibs"
171177
.\RegisterRext.exe /configure /pythonhome:"C:\Program Files\Python310" /instance:"MSSQLSERVER"
172178
```
179+
Note: if you have installed SQL Server as a named instance, you will need to replace MSSQLSERVER with the name of your named instance. For example, with a default installation of SQL Server Express edition, you would need to execute the following commands instead:
180+
181+
```cmd
182+
cd "C:\Program Files\Python310\Lib\site-packages\revoscalepy\rxLibs"
183+
.\RegisterRext.exe /configure /pythonhome:"C:\Program Files\Python310" /instance:"SQLEXPRESS"
184+
```
173185
174186
1. Use [SQL Server Management Studio](../../ssms/download-sql-server-management-studio-ssms.md) or [Azure Data Studio](../../azure-data-studio/what-is-azure-data-studio.md) to connect to the instance where you installed SQL Server Machine Learning Services. Select **New Query** to open a query window, and then run the following command to enable the external scripting feature:
175187

0 commit comments

Comments
 (0)