Skip to content

Commit aeeaa32

Browse files
Merge pull request #23818 from WilliamDAssafMSFT/202208222-ml-sql-2022
20220822 1630 custom install path from monamaki
2 parents e143a39 + 63a4107 commit aeeaa32

1 file changed

Lines changed: 26 additions & 16 deletions

File tree

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

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Install SQL Server 2022 Machine Learning Services on Windows
33
description: Learn how to install SQL Server 2022 Machine Learning Services on Windows. You can use Machine Learning Services to execute Python, R, or Java scripts in-database.
44
ms.prod: sql
55
ms.technology: machine-learning-services
6-
ms.date: 05/24/2022
6+
ms.date: 08/23/2022
77
ms.topic: how-to
88
author: WilliamDAssafMSFT
99
ms.author: wiassaf
@@ -52,7 +52,7 @@ For local installations, you must run the setup as an administrator. If you inst
5252

5353
If you encounter any installation errors during setup, check the summary log in the Setup Bootstrap log folder. For example, `%ProgramFiles%\Microsoft SQL Server\160\Setup Bootstrap\Log\Summary.txt`.
5454

55-
1. Start the setup wizard for SQL Server.
55+
1. Start the SQL Setup wizard for SQL Server.
5656

5757
2. On the **Installation** tab, select **New SQL Server stand-alone installation or add features to an existing installation**.
5858

@@ -77,6 +77,8 @@ If you encounter any installation errors during setup, check the summary log in
7777
- [Install Python](#install-python)
7878
- [Install Java](#install-java)
7979

80+
**Continue to the instructions to [install R](#install-r) or [install Python](#install-python).**
81+
8082
## Install R
8183

8284
5. Download the most recent version of [R 4.2 for Windows](https://cran.r-project.org/bin/windows/base/) for Windows, and install.
@@ -96,19 +98,17 @@ If you encounter any installation errors during setup, check the summary log in
9698
- [CompatibilityAPI Windows](https://go.microsoft.com/fwlink/?LinkID=2193827)
9799
- [RevoScaleR package for Windows](https://go.microsoft.com/fwlink/?LinkID=2193828)
98100

99-
The following sample scripts can be adapted for the installation:
100-
101-
```r
102-
R CMD INSTALL "c:\temp\CompatibilityAPI.zip"
103-
R CMD INSTALL "c:\temp\RevoScaleR.zip"
104-
```
101+
Assuming you have installed version 4.2.0 of R in its default location, for example `C:\Program Files\R\R-4.2.0`, and downloaded the required packages in `C:\temp` directory, the following sample scripts can be adapted for the installation:
105102

106-
8. Configure the installed R runtime with SQL Server. You can change the default version by using the **RegisterRext.exe** command-line utility. The utility is in an R application folder depending on the installation, usually in one of these two locations:
103+
```cmd
104+
cd C:\Program Files\R\R-4.2.0\bin
105+
R.exe CMD INSTALL -l "C:\Program Files\R\R-4.2.0\library" "C:\temp\CompatibilityAPI.zip"
106+
R.exe CMD INSTALL -l "C:\Program Files\R\R-4.2.0\library" "C:\temp\RevoScaleR.zip"
107+
```
107108

108-
- Application installation path: `%ProgramFiles%\R\R-4.2.0\library\RevoScaleR\rxLibs\x64`
109-
- User library path: `%localappdata%\R\win-library\4.2\RevoScaleR\rxLibs\x64`
109+
8. Configure the installed R runtime with SQL Server. You can change the default version by using the `RegisterRext.exe` command-line utility. The utility is in an R application folder depending on the installation, usually in `%ProgramFiles%\R\R-4.2.0\library\RevoScaleR\rxLibs\x64`.
110110

111-
The following script can be used to configure the installed R runtime from the installation folder location of **RegisterRext.exe**. The instance name is "MSSQLSERVER" for a default instance of SQL Server, or the instance name for a named instance of SQL Server.
111+
The following script can be used to configure the installed R runtime from the installation folder location of `RegisterRext.exe`. The instance name is "MSSQLSERVER" for a default instance of SQL Server, or the instance name for a named instance of SQL Server.
112112

113113
```cmd
114114
.\RegisterRext.exe /configure /rhome:"%ProgramFiles%\R\R-4.2.0" /instance:"MSSQLSERVER"
@@ -139,16 +139,26 @@ If you encounter any installation errors during setup, check the summary log in
139139
140140
## Install Python
141141
142-
5. Download the most recent version of [Python 3.10 for Windows](https://www.python.org/downloads/) for Windows, and install.
142+
5. Download the most recent version of [Python 3.10 for Windows](https://www.python.org/downloads/) for Windows. Install using the following options:
143+
1. Launch the Python Setup application and choose **Customize installation**.
144+
1. Verify the box is checked next to the option to **Install launcher for all users (recommended)**.
145+
1. Select all **Optional Features** options, or as desired.
146+
1. On the **Advanced Options** page, check **Install for all users**, accept other default options, and select **Install**. It is recommended that the Python installation path is accessible by all users such as `C:\Program Files\Python310 `and it is not specific to a single user.
147+
148+
6. Download the latest version of RevoScalePY package and its dependencies: [revoscalepy Python Windows](https://go.microsoft.com/fwlink/?LinkID=2193924) and install revoscalepy from the Python custom install location. For example:
143149
144-
6. Install the latest version of RevoScalePY package and its dependencies: [revoscalepy Python Windows](https://go.microsoft.com/fwlink/?LinkID=2193924).
150+
```cmd
151+
cd C:\Program Files\Python310\
152+
python -m pip install C:\Users\%username%\Downloads\revoscalepy-10.0.0-py3-none-any.whl
153+
```
145154
146-
7. Configure the installed Python runtime with SQL Server. You can change the default version by using the **RegisterRext.exe** command-line utility. The utility is in the user's application library folder, for example: `C:\Users\<alias>\AppData\Local\Programs\Python\Python310\Lib\site-packages\revoscalepy\rxLibs`.
155+
7. Configure the installed Python runtime with SQL Server. You can change the default version by using the **RegisterRext.exe** command-line utility. The utility is in the custom install location, for example: `C:\Program Files\Python310\Lib\site-packages\revoscalepy\rxLibs`.
147156
148157
The following script can be used to configure the installed Python runtime from the installation folder location of **RegisterRext.exe**. The instance name is "MSSQLSERVER" for a default instance of SQL Server, or the instance name for a named instance of SQL Server.
149158
150159
```cmd
151-
.\RegisterRext.exe /configure /pythonhome:"C:\Users\<alias>\AppData\Local\Programs\Python\Python310" /instance:"MSSQLSERVER"
160+
cd C:\Program Files\Python310\Lib\site-packages\revoscalepy\rxLibs
161+
.\RegisterRext.exe /configure /pythonhome:"C:\Program Files\Python310" /instance:"MSSQLSERVER"
152162
```
153163
154164
8. Use [SQL Server Management Studio (SSMS)](../../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 **Execute*** the following command to enable the external scripting feature:

0 commit comments

Comments
 (0)