Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.98 KB

File metadata and controls

56 lines (42 loc) · 1.98 KB
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

Install Language Extensions

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.

  1. 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
  2. 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
  3. Install mssql-server-extensibility with this command.

    # Install as root or sudo
    sudo apt-get install mssql-server-extensibility

Install Python 3.7 and pandas

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.

  1. 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
  2. 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