SQL Server2022 machine learning service using python error

Jerry 25 Reputation points
2023-11-09T02:33:52.5766667+00:00

My SQL Server version is 2022, and python version is 3.11.

While installing machine learning service in my laptop, it raised "can not import pylink".

Then I install this module using pip. Did not work!

I followed the doc https://learn.microsoft.com/zh-cn/sql/machine-learning/install/sql-machine-learning-services-windows-install-sql-2022?view=sql-server-ver16, but the version of python is 3.10

Does python version matter?

On another laptop, the same version of Server, but the version of python is 3.10, it works fine. And it's strange that it does not have pylink module.

SQL Server Other
{count} votes

Accepted answer
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2023-11-15T08:51:19.1366667+00:00

    Hi Jerry •,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others Opens in new window or tab", I'll repost your solution in case you'd like to "Accept Opens in new window or tab" the answer.

    Solution: Rollbacking Python version to 3.10 worked.

    If you have any other questions or are still running into more issues, please let me know.
    Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    Thanks

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2023-11-13T10:18:12.1233333+00:00

    Hi Jerry •,

    Welcome to Microsoft Q&A forum.

    As I understand, While installing machine learning service in laptop, it raised "can not import pylink".

    The issue might be due to version which was raised here: https://github.com/pylint-dev/pylint/issues/7306

    for setuptools, pip and python.

    https://github.com/pylint-dev/astroid/pull/1752

    Also, please refer to Stackoverflow discussion here https://stackoverflow.com/questions/1899436/pylint-unable-to-import-error-how-to-set-pythonpath which might help in your case.

    Let us know if this helped.

    Thanks

    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.