首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pip安装pep-508-url-deps失败

pip安装pep-508-url-deps失败
EN

Stack Overflow用户
提问于 2022-08-20 10:48:45
回答 1查看 60关注 0票数 0

我更改了索引-url,但是如果我安装了pep-508-url-deps,它正在收集https://github.com/pypa/sampleproject/archive/master.zip,会发生什么?

代码语言:javascript
复制
(test-3-9) [root@localhost pip]# pip install pep-508-url-deps
Looking in indexes: http://mirrors.tools.douban.com/pypi/simple
Collecting pep-508-url-deps
  Downloading http://mirrors.tools.douban.com/pypi/packages/bc/69/b088a665f2cf87cb1f260376dce6895bf4b00336736b2082ef5af5a8bd20/pep-508-url-deps-1.0.0.post0.tar.gz (1.1 kB)
  Preparing metadata (setup.py) ... done
Collecting sampleproject@ https://github.com/pypa/sampleproject/archive/master.zip
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /pypa/sampleproject/archive/master.zip
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /pypa/sampleproject/archive/master.zip
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /pypa/sampleproject/archive/master.zip
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /pypa/sampleproject/archive/master.zip
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))': /pypa/sampleproject/archive/master.zip
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /pypa/sampleproject/archive/master.zip (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')))

当我安装numpy的时候,没关系,这让我很困惑。

代码语言:javascript
复制
(test-3-9) [root@localhost pip]# pip install numpy
Looking in indexes: http://mirrors.tools.douban.com/pypi/simple
Collecting numpy
  Downloading http://mirrors.tools.douban.com/pypi/packages/f8/ea/ff38168d6565a8549f819699cac4d89bbc38fc5b27fb94f8e92bcd713348/numpy-1.23.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.1/17.1 MB 19.8 MB/s eta 0:00:00
Installing collected packages: numpy
Successfully installed numpy-1.23.2
(test-3-9) [root@localhost pip]# 
EN

回答 1

Stack Overflow用户

发布于 2022-08-22 10:39:20

哦,天哪,它必须是codeload.github.comgithub.com在字段中,trusted-host = codeload.thub.com github.com在pip.conf中。

在此之前我只设置了其中一个。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73426043

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档