zoukankan      html  css  js  c++  java
  • pip安装第三方库报错Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate

    windows环境用pip安装第三方库Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming  the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retrie s exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN _PROTOCOL] unknown protocol (_ssl.c:852)'),)) - skipping

    应该是 https://pypi.org/simple/pip/ 这个地址,被公司拦截了

    通过百度解决办法:

    pip install package_name -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
    可替换用的镜像源

    1)http://mirrors.aliyun.com/pypi/simple/ 阿里云
    2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学
    3)http://pypi.douban.com/simple/ 豆瓣
    4)https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学
    5)http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

  • 相关阅读:
    Oracle RMAN快速入门指南
    防止SQL注入
    脚本获取参数 
    回车下一个
    DataTable
    C# Eval
    C#过滤所有HTML代码的函数
    反射
    gridview格式化问题
    绑定
  • 原文地址:https://www.cnblogs.com/xiaofeng91/p/14840128.html
Copyright © 2011-2022 走看看