我也见过类似的问题,但我没有看到解决问题的确切办法:
我设置了python虚拟环境,并希望安装python库。我在Windows 10上使用VisualStudio代码,在使用pip进行安装时会出现以下错误:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.在重试5次之后:
Could not fetch URL https://pypi.org/simple/opencv/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries
exceeded with url: /simple/opencv/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping似乎解决办法是增加
D:\Anaconda3
D:\Anaconda3\Scripts
D:\Anaconda3\Library\bin走到小路上。在此找到解决方案:
但是由于我没有使用anaconda,并且在一个虚拟环境中,所以我不能这样做,对吗?那么,我必须编辑activate.bat吗?如果是的话,具体是以什么方式。我能补充一下吗
发布于 2021-07-27 07:50:16
安装OpenSSL对我起了作用。看来dll的版本有问题。更多的信息可以在这里找到,但对我来说已经足够了。
https://stackoverflow.com/questions/68533714
复制相似问题