| author | VanMSFT |
|---|---|
| ms.author | vanto |
| ms.date | 02/08/2021 |
| ms.service | sql |
| ms.subservice | machine-learning-services |
| ms.custom | linux-related-content |
| ms.topic | include |
Note
If you have Machine Learning Services installed on SQL Server 2019, the mssql-server-extensibility package for Language Extensions is already installed and you can skip this step.
Run the commands below to install SQL Server Language Extensions on Ubuntu Linux, which is used for the Python custom runtime.
-
If possible, run this command to refresh the packages on the system prior to the installation.
# Install as root or sudo sudo apt-get update -
Ubuntu might not have the https apt transport option. To install it, run this command.
# Install as root or sudo apt-get install apt-transport-https -
Install mssql-server-extensibility with this command.
# Install as root or sudo sudo apt-get install mssql-server-extensibility
The Python language extension used for the custom Python runtime currently supports Python 3.7 only. If you would like to use a different version of Python, follow the instruction in the Python Language Extension GitHub repo to modify and rebuild the extension.
-
Run the commands below to install Python 3.7.
# Install python3.7 and the corresponding library: sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.7 python3-pip libpython3.7 -
Run the command below to install the pandas package
# Install pandas to /usr/lib: sudo python3.7 -m pip install pandas -t /usr/lib/python3.7/dist-packages