-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: 联合pip源出现无法寻找合适的pip包版本 #145
Labels
Comments
请用下面的命令检查跳转的实际目标:
|
(base) chen@Asus:~$ conda activate test
(test) chen@Asus:~$ pip config set global.index-url https://mirrors.cernet.edu.cn/pypi/web/simple
Writing to /home/chen/.config/pip/pip.conf
(test) chen@Asus:~$ pip install jupyter
Looking in indexes: https://mirrors.cernet.edu.cn/pypi/web/simple
ERROR: Could not find a version that satisfies the requirement jupyter (from versions: none)
ERROR: No matching distribution found for jupyter
(test) chen@Asus:~$ curl -v https://mirrors.cernet.edu.cn/pypi/web/simple
* Host mirrors.cernet.edu.cn:443 was resolved.
* IPv6: 2001:250:4:100::2
* IPv4: 1.51.3.134
* Trying 1.51.3.134:443...
* Connected to mirrors.cernet.edu.cn (1.51.3.134) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS
* ALPN: server accepted h2
* Server certificate:
* subject: CN=mirrors.cernet.edu.cn
* start date: Apr 7 07:29:28 2024 GMT
* expire date: Jul 6 07:29:27 2024 GMT
* subjectAltName: host "mirrors.cernet.edu.cn" matched cert's "mirrors.cernet.edu.cn"
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
* Certificate level 0: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha256WithRSAEncryption
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://mirrors.cernet.edu.cn/pypi/web/simple
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: mirrors.cernet.edu.cn]
* [HTTP/2] [1] [:path: /pypi/web/simple]
* [HTTP/2] [1] [user-agent: curl/8.5.0]
* [HTTP/2] [1] [accept: */*]
> GET /pypi/web/simple HTTP/2
> Host: mirrors.cernet.edu.cn
> User-Agent: curl/8.5.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 302
< server: nginx-n.wtf/1.25.4
< date: Mon, 13 May 2024 11:07:21 GMT
< content-type: text/html; charset=utf-8
< content-length: 67
< location: https://pypi.mirrors.cqupt.edu.cn/web/simple
< strict-transport-security: max-age=86400
<
<a href="https://pypi.mirrors.cqupt.edu.cn/web/simple">Found</a>.
* Connection #0 to host mirrors.cernet.edu.cn left intact 好像是重邮抽风了。我换到北外源就正常了。 (test) chen@Asus:~$ python
Python 3.11.9 (main, Apr 19 2024, 16:48:06) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> |
我们应该修好了 |
@sujoshua 似乎还是有问题的: > docker run -it --rm python bash
root@1dd8b4b24750:/# pip config set global.index-url https://pypi.mirrors.cqupt.edu.cn/web/simple
Writing to /root/.config/pip/pip.conf
root@1dd8b4b24750:/# pip install jupyter
Looking in indexes: https://pypi.mirrors.cqupt.edu.cn/web/simple
ERROR: Could not find a version that satisfies the requirement jupyter (from versions: none)
ERROR: No matching distribution found for jupyter |
@taoky try again? 没发现这个issue是关于pypi的,现在新的选项也设置到pypi了 |
|
重邮pypi到现在都没法正常访问.是否可以考虑暂时在只能选取界面暂时ban掉重邮pypi源 |
@machenme 联系 cqupt 负责同学后,https://mirrors.cqupt.edu.cn/api/mirrorz.json 中的 pypi 已经被移除,目前应该不会再重定向到这里了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
先决条件 (Prerequisites)
I am sure that this problem has NEVER been discussed in other issues.
发生了什么(What happened)
期望的现象(What you expected to happen)
如何重现此问题(How to reproduce it)
操作系统(OS Version)
ubuntu24.04
浏览器(如果适用)(Browser version, if applicable)
No response
其他环境(Other environments)
conda
其他需要说明的事项(Anything else we need to know)
No response
The text was updated successfully, but these errors were encountered: