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

       在根据https://www.jb51.net/article/202175.htmUbuntu16安装Python3.9时,在第五步错误处理步骤后输入$pip list指令仍然显示warning:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not...具体如下图所示:

       在网上有很多人说在编译的时候需要添加 --with-ssl 如:./configure --prefix=/usr/local/python3 --with-ssl-default-suites=openssl,但是在添加之后确实也会出现警告configure: WARNING: unrecognized options: --with-ssl 。又有人说这个选项已经不支持了,没有作用了。为此我又在网上搜索了关于WARNING: unrecognized options: --with-ssl的相关解决方案,最终根据如下操作得以解决,它是在安装3.8.11版本遇到的同样问题,对于Python3.9同样适用。

最终,经过上述操作,结果正确:

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用、、都提到了一个警告信息,即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模块不可用。这可能是由于缺少必要的依赖或配置问题导致的。要解决这个问题,可以尝试安装或更新Pythonssl模块,或者检查是否缺少相关依赖库。您还可以尝试在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 ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值