pip3无法使用(错误:pip is configured with locations that require TLS/SSL, however the ssl model in ...)

问题:

centos安装了python3后出现 pip3无法使用,无论是重新安装都无法使用。具体错误信息如下:

解决办法:

增加pip3的源:

创建文件,~/.pip/pip.conf  增加内容:

[global]
index-url=http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

成功运行:

引用、、都提到了一个警告信息,即pip配置了需要TLS/SSL的位置,但Python中的ssl模块不可用。根据这个信息,可以得出结论是SSL模块在Python中不可用,因此无法满足pip所需的TLS/SSL配置。 对于"centos7 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available."这个问题,可以这样回答: 这个警告信息说明在centos7操作系统上,pip配置了需要TLS/SSL的位置,但是Python中的ssl模块不可用。这可能是由于缺少必要的依赖或配置问题导致的。要解决这个问题,可以尝试安装或更新Python的ssl模块,或者检查是否缺少相关依赖库。您还可以尝试在Python虚拟环境中安装pip,以确保正确的TLS/SSL配置。123 #### 引用[.reference_title] - *1* *3* [解决 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not](https://blog.csdn.net/qq_49580107/article/details/126380616)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item] - *2* [python 安装: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module...](https://blog.csdn.net/weixin_43781229/article/details/111827939)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值