吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1252|回复: 18
收起左侧

[求助] pip总是有ssl报错,该怎么解决

[复制链接]
wihn 发表于 2022-1-31 11:16
已经安装了openssl,添加到了环境变量。但是依然无法用pip安装,请问该怎么办?
[PowerShell] 纯文本查看 复制代码
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/webrtcvad-wheels/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/webrtcvad-wheels/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/webrtcvad-wheels/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/webrtcvad-wheels/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/webrtcvad-wheels/
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/webrtcvad-wheels/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/webrtcvad-wheels/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement webrtcvad-wheels
ERROR: No matching distribution found for webrtcvad-wheels

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

chen299 发表于 2022-1-31 11:28
本帖最后由 chen299 于 2022-1-31 11:31 编辑

pip换成pip3试试,或者换个源试试 http://pypi.douban.com/simple/
Traitor 发表于 2022-1-31 11:38
 楼主| wihn 发表于 2022-1-31 11:39
chen299 发表于 2022-1-31 11:28
pip换成pip3试试,或者换个源试试 http://pypi.douban.com/simple/

pip3应该没区别,源我试过换成http的清华源,还是不行。
主要是那个python的openssl该怎么装,我已经安装了官网的安装包,但看上去没什么用。
网上的经验都是在linux上装openssl的
 楼主| wihn 发表于 2022-1-31 13:07
Traitor 发表于 2022-1-31 11:38
尝试关掉科学上网

啊这……我没有科学上网啊……
小能维尼 发表于 2022-1-31 17:05
我不知道openssl是什么
但是打开科学上网,真全局,不就可以pip了?
作为程序员都应该具备的本领
Avenshy 发表于 2022-1-31 17:48
第一行
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

试试 pip install pyopenssl
whlee 发表于 2022-1-31 18:21
可能pip需要升级更新一下:python -m pip install --upgrade pip
songxp03 发表于 2022-1-31 21:04
安装openssl,并设置环境变量
 楼主| wihn 发表于 2022-1-31 21:52
songxp03 发表于 2022-1-31 21:04
安装openssl,并设置环境变量

安装的时候是有选dll复制到系统目录还是程序目录的/bin里,我选了系统目录,那应该不用添加到path吧,系统目录已经在path里了
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-25 18:54

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表