windows 环境下,python 安装好后,最好将 pip 源换成国内的,同时添加一下信任主机。避免形如:
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.tuna.tsinghua.edu.cn’, port=44
3): Max retries exceeded with url: /simple/requests/ (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local iss
uer certificate (_ssl.c:1123)’))) - skipping
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests

的错误出现。

  1. 首先执行
pip config set global.extra-index-url http://mirrors.aliyun.com/pypi/simple
  1. 此时可以看到 pip 自动生成了一个文件,提示:Writing to C:\Users\xxxxxx\AppData\Roaming\pip\pip.ini
  2. 打开该文件,直接将下列内容覆盖进去:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple
extra-index-url = http://pypi.douban.com/simplehttps://pypi.tuna.tsinghua.edu.cn/simplehttp://pypi.mirrors.ustc.edu.cn/simplehttp://pypi.hustunique.com[install]
trusted-host = mirrors.aliyun.compypi.douban.compypi.tuna.tsinghua.edu.cnpypi.mirrors.ustc.edu.cnmirrors.ustc.edu.cnmirrors.bfsu.edu.cnpypi.hustunique.com
  1. 保存,完成

正确设置 pip,避免There was a problem confirming the ssl certificate问题相关推荐

  1. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate

    安装jsonpath:>pip install jsonpath 报错:Could not fetch URL https://pypi.org/simple/pip/: There was a ...

  2. There was a problem confirming the ssl certificate

    There was a problem confirming the ssl certificate 在使用pip 或者 爬虫爬取HTTPs时 有时SSL报错 查看最根源的错误是"Can't ...

  3. There was a problem confirming the ssl certificate ……

    在安装一个Python库onetimepass时发生下面的问题: pip install onetimepass Could not fetch URL https://pypi.python.org ...

  4. OS X EI Captain 下解决 There was a problem confirming the ssl certificate 问题

    参考: Problem Confirming the SSL Certificate - OSX OS X EI Captain 下解决 There was a problem confirming ...

  5. Windows 下使用anaconda虚拟环境pip install 安装pytorch出现报错There was a problem confirming the ssl certificate

    一.报错信息 使用anaconda创建的虚拟环境,进入虚拟环境,使用以下命令安装pytorch pip3 install torch torchvision torchaudio --extra-in ...

  6. 【pip报错】Could not fetch URL https://pypi.org/simple/gast/:There was a problem confirming the ssl cert

    pip install -r requirements.txt 问题1: [报错]Could not fetch URL https://pypi.org/simple/gast/: There wa ...

  7. 使用pip报错:Could not fetch URL https://pypi.org/simple/: There was a problem confirming the ssl certi

    ** WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after con ...

  8. pip或pip3安装报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming。。。

    Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate ...

  9. 已解决Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming

    已解决(pip升级报错) WARNING: pip is configured with locations that require TLS/SSL, however the ssl module ...

  10. python3.7安装pip问题_python3.7安装, 解决pip is configured with locations that require TLS/SSL问题...

    1.安装相关依赖 yum install gcc libffi-devel zlib* openssl-devel # libffi-devel zlib-devel bzip2-devel open ...

最新文章

  1. Codeforces Round #601 (Div. 2)D. Feeding Chicken,二维压一维,几何平面的分配
  2. iOS培训教程——设置默认语言
  3. CodeForcesGym 100753B Bounty Hunter II 二分图最小路径覆盖
  4. Objective-C Runtime
  5. java-HTMLjavaSkcriptCSSjQueryajax
  6. Document类型知识大全
  7. 数据库视频(一)——整体认识
  8. 图论--最长路--洛谷P1807 最长路_NOI导刊2010提高(07)
  9. jax-rs/jersey_使用JAX-RS(Jersey)的HTTP状态错误消息响应中的自定义原因短语
  10. 团队开发里频繁使用 git rebase 来保持树的整洁好吗?
  11. matlab中值滤波实现
  12. java 清空文件夹_java 删除文件夹中的所有文件及文件夹
  13. 服务器装win10系统,win10服务器系统
  14. 订单流失总金额怎么算_微信新规下增长乏力,裂变到底该怎么做?
  15. 想要制作好看的壁纸,有CorelDRAW就够啦
  16. Sketch占满MacBook200G硬盘的解决方法
  17. 机房综合布线施工主要是几个方面
  18. dos(cmd)命令
  19. 矩阵的转置(C语言)
  20. 微信小程序开发聊天室——实时聊天,支持图片预览

热门文章

  1. 软件是怎么开发出来的?怎么进行软件开发流程详解
  2. 气象台发布的拼图重投影示例
  3. c语言恶搞小程序自动关机,C语言的自动关机程序及捉弄人的小程序.doc
  4. iOS发展史:从iPhone OS 1.0到iOS10 终于支持骚扰拦截了
  5. 动态规划-背包问题求解过程【代码 from eason】
  6. 深入探索JVM垃圾收集器 — 经典垃圾收集器之Parallel Scavenge收集器、Serial Old收集器、Parallel Old收集器
  7. 寻找不能拼读的汉语拼音
  8. IT人员升职必会的软技能
  9. WebView 入坑
  10. 找众数的算法代码c语言,寻找众数算法