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版本

这篇博客详细介绍了如何处理Python中找不到novas库的问题,以及SSL模块缺失的错误。首先,通过检查openssl版本确认问题所在,然后从OpenSSL官网下载最新源码并进行编译安装。接着,备份原有openssl并创建新版本的软链接,更新系统配置以指向新的openssl库。最后,验证openssl版本以确保问题已解决。这个过程对于Python开发者解决依赖问题和系统配置优化具有参考价值。
1万+

被折叠的 条评论
为什么被折叠?



