简体   繁体   中英

Windows console unable to install Python packages using pip after installing SQL Server 2019 on Windows

I am trying to install sqlmlutils for machine learning to help manage my python packages within Microsoft Machine Learning Services and I recently upgraded to SQL Server 2019. The install fails with this error:

Ssl module in Python is not available.

This is a known issue. See: #7 in https://docs.microsoft.com/en-us/sql/machine-learning/known-issues-for-sql-server-machine-learning-services?view=sql-server-ver15

"After installing SQL Server 2019 on Windows, attempting to install a python package via pip from a DOS command line will fail. For example: pip install quantfolio This will return the following error: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available."

I tried the Workaround, which suggests the following:

Copy the following files: libssl-1_1-x64.dll libcrypto-1_1-x64.dll from the folder C:\Program Files\Microsoft SQL Server\MSSSQL15.MSSQLSERVER\PYTHON_SERVICES\Library\bin to the folder C:\Program Files\Microsoft SQL Server\MSSSQL15.MSSQLSERVER\PYTHON_SERVICES\DLLs

Then rebooted, verified the copied files were in both locations, but still I get the same error. Does anyone know if there is a workaround that actually works?

Try installing OpenSSL for windows

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM