繁体   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