Skip to content

Commit a616ba8

Browse files
Merge pull request #36052 from VanMSFT/vanto/python-setup-sql2022
Revise python setup instructions for SQL server 2022
2 parents 9d71edd + 40bfb99 commit a616ba8

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to install SQL Server 2022 Machine Learning Services on W
44
author: VanMSFT
55
ms.author: vanto
66
ms.reviewer: arunguru-msft
7-
ms.date: 06/30/2025
7+
ms.date: 12/10/2025
88
ms.service: sql
99
ms.subservice: machine-learning-services
1010
ms.topic: how-to
@@ -16,7 +16,7 @@ monikerRange: ">=sql-server-ver16"
1616

1717
[!INCLUDE [SQL Server 2022](../../includes/applies-to-version/sqlserver2022.md)]
1818

19-
This article shows you how to install [SQL Server Machine Learning Services with Python and R](../sql-server-machine-learning-services.md) on Windows. You can use Machine Learning Services to run Python and R scripts in-database.
19+
This article shows you how to install [SQL Server Machine Learning Services with Python and R](../sql-server-machine-learning-services.md) on Windows. With Machine Learning Services, you can run Python and R scripts in-database.
2020

2121
> [!NOTE]
2222
> These instructions are specific to [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)] on Windows. To install SQL Server Machine Learning Services on Windows for [!INCLUDE [sssql16-md](../../includes/sssql16-md.md)], [!INCLUDE [sssql17-md](../../includes/sssql17-md.md)], or [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)], see [Install SQL Server Machine Learning Services (Python and R) on Windows](sql-machine-learning-services-windows-install.md).
@@ -145,7 +145,7 @@ Beginning with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], runtimes f
145145

146146
#### Install Python runtime
147147

148-
1. Download the most recent version of [Python 3.10 for Windows](https://www.python.org/downloads/). Install it by using the following options:
148+
1. Download the most recent version of [Python 3.10 for Windows](https://aka.ms/Python3_10). Install it by using the following options:
149149

150150
1. Open the Python Setup application and select **Customize installation**.
151151
1. Verify that the **Install launcher for all users (recommended)** checkbox is selected.
@@ -154,15 +154,24 @@ Beginning with [!INCLUDE [sssql22-md](../../includes/sssql22-md.md)], runtimes f
154154

155155
We recommend using a Python installation path that all users can access (such as `C:\Program Files\Python310`), and not one that's specific to a single user.
156156
157-
1. Download and install the latest version of the `revoscalepy` package and its dependencies from a new elevated command prompt:
157+
1. Create a text file with the following contents, and save it as `C:\Program Files\Python310\constraints.txt`:
158+
159+
```text
160+
dill==0.3.4
161+
numpy==1.22.0
162+
pandas==1.3.5
163+
patsy==0.5.2
164+
python-dateutil==2.8.2
165+
```
166+
167+
1. Download and install the latest version of the `revoscalepy` package and its dependencies from a new elevated command prompt. Pass the `constraints.txt` file created in the previous step:
158168
159169
```cmd
160170
cd "C:\Program Files\Python310\"
161-
python -m pip install -t "C:\Program Files\Python310\Lib\site-packages" dill numpy==1.22.0 pandas patsy python-dateutil packaging
162-
python -m pip install -t "C:\Program Files\Python310\Lib\site-packages" https://aka.ms/sqlml/python3.10/windows/revoscalepy-10.0.1-py3-none-any.whl
171+
python -m pip install -t "C:\Program Files\Python310\Lib\site-packages" -c "C:\Program Files\Python310\constraints.txt" dill numpy pandas patsy python-dateutil packaging https://aka.ms/sqlml/python3.10/windows/revoscalepy-10.0.1-py3-none-any.whl
163172
```
164173
165-
Run the following **icacls** commands to grant **READ** and **EXECUTE** access to the installed libraries to **SQL Server Launchpad Service** and SID **S-1-15-2-1 (ALL_APPLICATION_PACKAGES)**. You need to grant permissions to the service account associated with the Launchpad service, check in [SQL Server Configuration Manager](../../relational-databases/sql-server-configuration-manager.md).
174+
1. Run the following **icacls** commands to grant **READ** and **EXECUTE** access to the installed libraries to **SQL Server Launchpad Service** and SID **S-1-15-2-1 (ALL_APPLICATION_PACKAGES)**. You need to grant permissions to the service account associated with the Launchpad service. Check in [SQL Server Configuration Manager](../../relational-databases/sql-server-configuration-manager.md).
166175
167176
```cmd
168177
icacls "C:\Program Files\Python310\Lib\site-packages" /grant "NT Service\MSSQLLAUNCHPAD":(OI)(CI)RX /T

0 commit comments

Comments
 (0)