今天使用pip3 install virtualenv命令安装virtualenv的时候一直安装不了,
错误信息大概是这样的。
WARNING: pip is configured with locations that require TLS/SSL, however the
前言
这个错误百度一搜索就知道是安装python的时候没有安装ssl。
不同的python版本对应的openssl要求不一样,我安装的python版本是的3.8.3,要求的openssl在1.0.2以上,如果系统上面的openssl不满足条件可以升级一下。
解决方案
参考连接
python3安装文件遇到ssl未安装问题
python3集成ssl的前提条件是系统有安装openssl,可以使用命令验证
openssl version
[root@hecs-x-large-2-linux-20200606135952 openssl-1.1.1a]# openssl version
OpenSSL 1.1.1a 20 Nov 2018
[root@hecs-x-large-2-linux-20200606135952 openssl-1.1.1a]#
找到openssl的安装目录,可以使用下面的命令来找
[root@]# which openssl
/usr/bin/openssl
[root@]# ll /usr/bin/openssl
lrwxrwxrwx 1 roo