【已解决】:pip is configured with locations that require TLS/SSL

在使用pip进行软件包安装的时候出现问题:

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

解决:

csharp 复制代码
mkdir -p ~/.pip
vim ~/.pip/pip.conf

然后输入内容:

csharp 复制代码
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host = mirrors.aliyun.com

再次使用pip安装即可。

参考:https://blog.csdn.net/witton/article/details/109352577?spm=1001.2101.3001.6650.15\&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-15-109352577-blog-128715977.235^v43^pc_blog_bottom_relevance_base2\&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-15-109352577-blog-128715977.235^v43^pc_blog_bottom_relevance_base2

相关推荐
Jony_2 天前
高可用移动网络连接
网络协议
chilix2 天前
Linux 跨网段路由转发配置
网络协议
tryCbest4 天前
Windows环境下配置pip镜像源
windows·pip
gihigo19984 天前
基于TCP协议实现视频采集与通信
网络协议·tcp/ip·音视频
百锦再4 天前
Django实现接口token检测的实现方案
数据库·python·django·sqlite·flask·fastapi·pip
白太岁4 天前
通信:(5) 电路交换、报文交换与分组交换
运维·服务器·网络·网络协议
EasyGBS4 天前
国标安全升级:GB28181平台EasyGBS支持GB35114协议的应用场景与核心优势
网络协议·安全·gb28181·gb35114
凯酱4 天前
Windows防火墙入站规则IP白名单
windows·网络协议·tcp/ip
稻草猫.4 天前
TCP与UDP:传输层协议深度解析
笔记·后端·网络协议
赤月奇4 天前
https改为http
数据挖掘·https·ssl