SQL-SERVER-2019

Algotar, Kalpana A 1 Reputation point
2021-11-11T18:29:13.603+00:00

Hi,
I have Python 3.7 embedded in SQL Server 2019. I am trying to install tensorflow library using whl file from the command prompt using the below command(offline - without internet) in my SQL Server 2019.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,947 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Erland Sommarskog 112.6K Reputation points MVP
    2021-11-11T21:36:48.14+00:00

    I have not worked with this myself, but it seems that this is discussed on this page: https://learn.microsoft.com/en-us/sql/machine-learning/package-management/install-python-packages-standard-tools?view=sql-server-2017

    My apologies, if you already have read it.


  2. Seeya Xi-MSFT 16,471 Reputation points
    2021-11-12T07:02:45.21+00:00

    Hi @Algotar, Kalpana A ,

    tensorflow-2.7.0-cp39-cp39-win_amd64.whl

    The error message means there is some incompatibility between the wheel package and your version of Python.
    It seems that you did not choose the correct version of the wheel package.
    Since your Python is version 3.7. You can download this whl file from the following address.
    https://pypi.org/project/tensorflow/#files
    148688-1.png
    Hope your issue could be solved!

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Erland Sommarskog 112.6K Reputation points MVP
    2021-11-13T11:05:08.237+00:00

    For the record, this happens when I try to install Tensorflow:

    148965-image.png

    I do get an error, but that is because I am not running as administrator. I take it that you get the error message before you get "Installing collected packages".

    What does "SELECT @@version" report when you run this in a query window?


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.