簡體   English   中英

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

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

我正在嘗試安裝用於機器學習的 sqlmlutils,以幫助管理我在 Microsoft 機器學習服務中的 python 包,我最近升級到 SQL Server 2019。安裝失敗並出現以下錯誤:

Python 中的 Ssl 模塊不可用。

這是一個已知的問題。 請參閱:https 中的 #7 ://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 Python 中的 ssl 模塊不可用。”

我嘗試了解決方法,它提出了以下建議:

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 服務器\MSSSQL15.MSSQLSERVER\PYTHON_SERVICES\DLLs

然后重新啟動,驗證復制的文件在兩個位置,但我仍然得到同樣的錯誤。 有誰知道是否有真正有效的解決方法?

嘗試為 windows 安裝 OpenSSL

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM