无法在windows 10上通过'pip'安装任何软件包,Python中的ssl模块不可用

2024-04-25 20:31:15 发布

您现在位置:Python中文网/ 问答频道 /正文

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

There was a problem confirming the ssl certificate: HTTPSConnection

(Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

这是我尝试pip install任何东西时遇到的错误pip install以前对我有用,但最近我又试了一次,结果一直不起作用。我以前也见过同样的问题,他们通常会说

add the following in environment paths:

D:\Anaconda3; 
D:\Anaconda3\Scripts; 
D:\Anaconda3\Library\bin

然而,我不使用Python。我只是安装了Python3.8,我通常使用PyCharm安装来安装软件包。我还尝试从https://slproweb.com/products/Win32OpenSSL.html安装OpenSSL,因为这是一种解决方案

所有这些都不起作用,我也犯了同样的错误。如果有人能帮忙,我将不胜感激


Tags: installpiptheinsslis错误with