Ubuntu: pip is configured with locations require TLS/SSL, however the ssl module is not available

pip安装应用时,报SSL错

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

可能原因是python没有ssl,则在python安装时应该添加ssl

./configure --with-openssl=/usr/local/ssl

参见:

python3.8安装:

Ubuntu 安装Python3.8_ubuntu安装python3.8-CSDN博客

ssl问题解决:【Python】已解决:WARNING: pip is configured with locations that require TLS/SSL, however the ssl module i_pip install numpy warning: pip is configured with -CSDN博客

pip时报错如下

zipimport.ZipImportError: can‘t decompress data; zlib not available

采用如下方式

sudo apt install zlib1g-dev

参见:

zipimport.ZipImportError: can‘t decompress data; zlib not available 解决_zipimport.zipimporterror: can't decompress data; z-CSDN博客

Linux pip安装应用时distro-info报错:

Error parsing dependencies of distro-info: Invalid version: '0.18ubuntu0.18.04.1'

尝试修复

pip install --upgrade distro-info

git-lfs安装

首先下载安装文件

apt/deb repos: 

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash

yum/rpm repos: 

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash

安装

apt/deb: 

sudo apt-get install git-lfs

yum/rpm: 

sudo yum install git-lfs

然后

git lfs install

再clone文件即可。

参见:

GitHub:https://github.com/git-lfs/git-lfs/blob/main/INSTALLING.md

Git LFS介绍:git-lfs的安装和使用_git-lfs安装-CSDN博客

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 这个警告信息通常表示在Python中缺少ssl模块,导致pip无法正常工作。这可能是由于系统配置或Python安装中的问题导致的。 针对这个问题,有几种解决方法可以尝试: 1. 确保安装了openssl库和相应的开发包:在Debian/Ubuntu系统上,可以使用以下命令安装: sudo apt-get install openssl libssl-dev 2. 检查Python是否正确安装了ssl模块:可以使用以下命令检查Python是否安装了ssl模块: python -m ssl 3. 如果ssl模块确实缺失,可以尝试重新编译和安装Python,确保在编译过程中启用了ssl支持。具体步骤可以参考相关的Python编译文档。 4. 可以尝试更新pip和setuptools到最新版本,使用以下命令: python -m pip install --upgrade pip setuptools 5. 如果上述方法仍然无法解决问题,可能需要进行更深入的调查和分析。可以搜索相关的错误信息,查找其他用户可能遇到的类似问题和解决方法。 请根据你使用的操作系统和Python版本选择适合的解决方法,并根据需要进行尝试。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [python 安装: WARNING: pip is configured with locations that require TLS/SSL, however the ssl module...](https://blog.csdn.net/weixin_43781229/article/details/111827939)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [Ubuntu/Deepin下Python3.8出现SSL错误的解决方案](https://download.csdn.net/download/weixin_38641561/14042425)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值