解决: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.

解决方法:

mkdir -p ~/.pip
vim ~/.pip/pip.conf

然后输入内容:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

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

相关推荐

  1. Edge问题解决教程

    2024-04-29 18:34:03       39 阅读
  2. 跨域怎么解决

    2024-04-29 18:34:03       33 阅读
  3. php解决XSS攻击

    2024-04-29 18:34:03       34 阅读
  4. eureka ConnectException如何解决

    2024-04-29 18:34:03       33 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-29 18:34:03       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-29 18:34:03       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-29 18:34:03       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-29 18:34:03       18 阅读

热门阅读

  1. ansible安装教程

    2024-04-29 18:34:03       11 阅读
  2. Web开发中的网络安全: 常见攻击及防范策略

    2024-04-29 18:34:03       8 阅读
  3. Linux 远程连接 Windows Server

    2024-04-29 18:34:03       9 阅读
  4. ol基于4326编码的地图遮罩与反向遮罩

    2024-04-29 18:34:03       11 阅读
  5. 1、Python:多面手的编程语言

    2024-04-29 18:34:03       7 阅读