pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail
2023-09-11 14:14:47 时间
linux环境下
首先明确问题出现原因,是因为openssl版本过低或者不存在 so:
查看openssl安装包,发现缺少openssl-devel包
[root@localhost ~]# rpm -aq|grep openssl
openssl-0.9.8e-20.el5
openssl-0.9.8e-20.el5
[root@localhost ~]#
yum安装openssl-devel
[root@localhost ~]# yum install openssl-devel -y
查看安装结果
[root@localhost ~]# rpm -aq|grep openssl
openssl-0.9.8e-26.el5_9.1
openssl-0.9.8e-26.el5_9.1
openssl-devel-0.9.8e-26.el5_9.1
openssl-devel-0.9.8e-26.el5_9.1
重新对python3.6进行编译安装,用一下过程来实现编译安装:
cd Python-3.6.4
./configure --with-ssl
make
sudo make install
Windows环境下:
解决方法为到https://slproweb.com/products/Win32OpenSSL.html上下载winopessl,直接下载第一个MSI安装即可:
之后问题就解决了
相关文章
- 【Python成长之路】python并发学习:多进程与多线程的用法及场景介绍
- grpc python 源码分析(2):server 处理请求
- python: 安装DeOldify库:黑白图片上色(Python 3.7.15)
- python:pip升级pip本身和setuptools(Python 3.7.15)
- 【Python五篇慢慢弹(3)】函数修行知python
- paip.截取字符串byLastDot方法总结uapi python java php c# 总结
- Python编程语言学习:python语言中快速查询python自带模块&函数的用法及其属性方法、如何查询某个函数&关键词的用法、输出一个类或者实例化对象的所有属性和方法名之详细攻略
- Python之tkinter:动态演示调用python库的tkinter带你进入GUI世界(Scale/Scale的Command)
- Python IDE之Pydev: 基于Eclipse搭建python的编译环境(Eclipse+pydev)简介、安装、使用技巧方法集合之详细攻略
- Python语言学习之常见语句命令那些事:python和常见语句命令(条件语句、pass语句)使用方法之详细攻略
- 成功解决WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python
- 成功解决tensorflowcontriblearnpythonlearndatasetsbase._internal_retry.<locals>.wrap.<locals>.wrapp
- Python 实现个人博客系统(附零基础python学习资料)
- Python中文解释器
- python操作toml文件
- python之实现ssl socket客户端(除夕快乐)
- Python编程:pyenv管理多个python版本环境
- python基础之函数
- 在Windows里生成SSL的证书和使用python进行通讯
- 8.python 系统批量运维管理器之pexpect模块
- python基础===Python 代码优化常见技巧
- Python基础数据类型之字符串(二)