Can make Python work with SQL 2022

Veronika Komarov - X 5 Reputation points
2024-10-31T23:21:35.2333333+00:00

Installed Machine Learning and Python on SQL 2022 Enterprise Edition. Followed every step of this Article https://learn.microsoft.com/en-us/sql/machine-learning/install/sql-machine-learning-services-windows-install-sql-2022?view=sql-server-ver16 Launchpad service is running, but when I try to run test in SSMS I can't get it to work - keep getting error. Tried all possible solutions that could be found on a web.

Msg 39012, Level 16, State 14, Line 0

Unable to communicate with the runtime for 'Python' script for request id: 2C35BF73-AC5E-46B9-99A4-197C0E835055. Please check the requirements of 'Python' runtime.

STDERR message(s) from external script:

Failed to find real location of C:\Program Files\Python310\python.exe

Traceback (most recent call last):

*File "

Community Center Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,180 Reputation points MVP
    2024-11-01T04:02:19.1233333+00:00

    Hello

    first, check

    external scripts enabled or not?

    https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/external-scripts-enabled-server-configuration-option?view=sql-server-ver16

    then assuming you followed the correct steps

    please check the launchpad permissions and check phyton directory is accessible to the service account

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.