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.

"C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\PYTHON_SERVICES\python.exe" -m pip install --no-deps "tensorflow-2.7.0-cp39-cp39m-win_amd64.whl"

I am getting the following error message.

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
ERROR: tensorflow-2.7.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

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.

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

Hi @Algotar, Kalpana A ,

Do you have any further updates.
BTW, have you tried to run the installation as an administrator?
If you have any questions, please feel free to let me know. If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. By doing so, it will benefit all community members who are having this similar issue. Your contribution is highly appreciated.

Best regards,
Seeya

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

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?

Hi Seeya,

We tried to run the following command and from that command we skipped "--no-deps". It asked for some packages to install. We installed few. And then asked for installing keras 2.7-rc0.
"C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\PYTHON_SERVICES\python.exe" -m pip install "tensorflow-2.7.0-cp39-cp39m-win_amd64.whl"

My question is can we have zip folder for tensorflow with all dependencies? If yes then, can you please share with us. So, we don't need to install each dependency individually.

When I tried to install tensorflow above, it seemed to download the dependencies. As noted the installed because of permission issues, and I wasn't really inclined to actually installed tensorflow, so I abandoned it at that point.

I should add that I'm more or less a newbie when it comes to Python. You may get better help in forum for Python, or maybe even better in a forum for tensorflow. I can't see that it really matters that you are trying to add Tensorflow to an installation that happens to come with SQL Server. I wold expect it to be the same as with any other Python installation.