首页 > 编程语言 >pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail

时间:2024-07-10 11:19:25浏览次数:14  
标签:TLS available None SSL module ssl connect pip

使用Ubuntu16.04(已内置python2.7)安装python3.10之后,再使用pip3安装包的时候总是报错:

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (21.2.3)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

 

使用方法:

pip3 install xxx-package -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip3 install -r requirements.txt -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com

标签:TLS,available,None,SSL,module,ssl,connect,pip
From: https://www.cnblogs.com/zhongxiaoyan/p/18293553

相关文章

  • 【Azure App Service】访问App Service应用报错 SSL: WRONG_VERSION_NUMBER
    问题描述应用部署在AzureAppService中,访问DefaultURL,遇见SSL:WRONG_VERSION_NUMBER错误。RESTAPI工具调用时错误信息:writeEPROTO8936192:error:100000f7:SSLroutines:OPENSSL_internal:WRONG_VERSION_NUMBER:..\..\third_party\boringssl\src\ssl\tls_record.cc:231:......
  • 企业网站安装SSL证书有什么好处?
    在当今数字化的商业世界中,企业网站的安全性至关重要。安装SSL证书已成为众多企业提升网站安全性和可信度的重要举措。企业网站安装SSL证书究竟有哪些好处?首先,安装SSL证书能够保障数据的安全传输。当用户在企业网站上进行操作,如填写表单、登录账号、进行在线交易等,这些数据......
  • 申请SSL证书怎么进行域名验证?域名验证的三种方式
    SSL证书是用于加密和保护Web服务器和浏览器之间通信的数字证书,在申请SSL证书时,为了防止域名被冒用,对于申请SSL证书的域名,要求先验证这个域名的所有权。而目前可用的域名验证SSL证书方式有三种:分别是DNS验证、邮箱验证、文件验证。本文将详细介绍这三种SSL证书域名验证方式,一起......
  • linux centos8升级openssh与openssl
    LinuxOpenSSH升级升级openssh之前需要先升级openssl 1、升级准备##1.1、查看系统版本和ssh版本linux系统版本cat/etc/redhat-release#或者uname-aopenssh查看一下原安装版本ssh-Vopenssl查看一下原安装版本opensslversion 1.2、下载软件包Opens......
  • HTTP协议27丨更好更快的握手:TLS1.3特性解析
    上一讲中我讲了TLS1.2的握手过程,你是不是已经完全掌握了呢?不过TLS1.2已经是10年前(2008年)的“老”协议了,虽然历经考验,但毕竟“岁月不饶人”,在安全、性能等方面已经跟不上如今的互联网了。于是经过四年、近30个草案的反复打磨,TLS1.3终于在去年(2018年)“粉墨登场”,再......
  • 解决RuntimeError: Numpy is not available
    解决RuntimeError:Numpyisnotavailable首先遇到问题界面:在vscode首次运行importnumpyasnp报错:大致含义:模块不兼容:这个错误信息表示你当前运行的环境中,某些模块是使用NumPy1.x版本编译的,而你当前的NumPy版本是2.0.0。由于版本不兼容,这些模块可能会崩溃或产......
  • 性价比很高的多域名SSL证书:Buypass
    在当今数字化快速发展的时代,网络安全已成为公众和企业关注的焦点。为了保障网站数据的安全传输,许多网站都采用了SSL证书来加密用户与服务器之间的通信。申请Buypass六个月免费SSL证书步骤1、输入域名,注意由于Buypass不支持泛域名,请不要勾选泛域名。 2、选择加密方式,一般选......
  • centos7 安装openssl
    1.下载openssl官网地址:https://www.openssl.org/source/wgethttps://www.openssl.org/source/openssl-3.0.14.tar.gztar-zxvfopenssl-3.0.14.tar.gzcdopenssl-3.0.142.编译安装yum-yinstallperl-IPC-Cmd./config--prefix=/usr/local/opensslmakemakeinstall3......
  • 节省上千元的SSL多域名证书申请方法
    在今天的数字化世界中,随着网络技术的飞速发展和电子商务的普及,网络安全问题变得日益重要。申请便宜SSL证书步骤1.登录来此加密网站,输入域名,可以勾选泛域名和包含根域。2.选择加密方式,一般选择默认就可以了,也可以自定义CSR。3.选择渠道,在这里可以任意选择一个渠道。4.......
  • 便宜SSL证书申请Let's Encrypt泛域名SSL证书
    随着互联网的飞速发展,网络安全问题愈发凸显其重要性。而HTTPS协议作为保障网站数据传输安全的重要手段,已经得到了广泛的应用。申请Let'sEncrypt便宜泛域名SSL证书步骤1.登录来此加密网站,输入域名,可以勾选泛域名和包含根域。2.选择加密方式,一般选择默认就可以了,也可以自定义C......