Skip to content
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

Closed
1 task done
machenme opened this issue May 11, 2024 · 8 comments
Closed
1 task done

bug: 联合pip源出现无法寻找合适的pip包版本 #145

machenme opened this issue May 11, 2024 · 8 comments
Labels

Comments

@machenme
Copy link

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

(aod) chen@Asus:~/py/aod$ 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  

期望的现象(What you expected to happen)

()aod) chen@Asus:~/py/aod$ pip config set global.index-url https://mirrors.bfsu.edu.cn/pypi/web/simple                                         
Writing to /home/chen/.config/pip/pip.conf                                                                                                    
(aod) chen@Asus:~/py/aod$ pip install jupyter
Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple                                                                               
Collecting jupyter                                                                                                                            
  Downloading https://mirrors.bfsu.edu.cn/pypi/web/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)

如何重现此问题(How to reproduce it)

(aod) chen@Asus:~/py/aod$ 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  

操作系统(OS Version)

ubuntu24.04

浏览器(如果适用)(Browser version, if applicable)

No response

其他环境(Other environments)

conda

其他需要说明的事项(Anything else we need to know)

No response

@taoky
Copy link
Member

taoky commented May 11, 2024

请用下面的命令检查跳转的实际目标:

curl -v https://mirrors.cernet.edu.cn/pypi/web/simple

@machenme
Copy link
Author

machenme commented May 13, 2024

(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

好像是重邮抽风了。我换到北外源就正常了。
这是目前的python版本

(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.
>>>

@taoky taoky added the external label May 13, 2024
@sujoshua
Copy link

我们应该修好了

CQUPTMirror/Report#48

@taoky
Copy link
Member

taoky commented May 14, 2024

@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

@sujoshua
Copy link

@taoky try again?

没发现这个issue是关于pypi的,现在新的选项也设置到pypi了

@taoky
Copy link
Member

taoky commented May 14, 2024

@taoky try again?

没发现这个issue是关于pypi的,现在新的选项也设置到pypi了

https://pypi.mirrors.cqupt.edu.cn/web/simple 仍然是 404

@machenme
Copy link
Author

重邮pypi到现在都没法正常访问.是否可以考虑暂时在只能选取界面暂时ban掉重邮pypi源

@taoky
Copy link
Member

taoky commented May 26, 2024

@machenme 联系 cqupt 负责同学后,https://mirrors.cqupt.edu.cn/api/mirrorz.json 中的 pypi 已经被移除,目前应该不会再重定向到这里了。

@taoky taoky closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants