ERROR: Could not find a version that satisfies the requirement novas (from versions: none)
ERROR: No matching distribution found for novas
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
问题大意:找不到满足novas要求的版本
错误:没有找到匹配的分布新星
警告:pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用
问题原因:openss版本过低或者重新编译python(Python编译安装时需要加上参数–with-openssl=其目录)
- 查看openssl的版本
openssl version -a
- 在OpenSSL官网用wget 下载源码包
wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
- 解压
tar -zxvf openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
- 编译安装
./config --prefix=/usr/local/openssl
make && make install
- 备份原配置
mv /usr/bin/openssl /usr/bin/openssl.bak
- 新版配置添加软连接
ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl
- 修改系统配置
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf #写入openssl库文件的搜索路径
ldconfig -v#使修改后的/etc/ld.so.conf生效
openssl version#查看openssl版本