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

请求优化 pypi 镜像对于阿里云的屏蔽策略 #2067

Closed
oraluben opened this issue Nov 13, 2024 · 3 comments
Closed

请求优化 pypi 镜像对于阿里云的屏蔽策略 #2067

oraluben opened this issue Nov 13, 2024 · 3 comments

Comments

@oraluben
Copy link

oraluben commented Nov 13, 2024

#1781 (comment) 中提及由于带宽原因,屏蔽了来自阿里云的请求。

首先,我想表达对该决定的理解和对以往镜像站服务的感激。

其次,我希望在屏蔽时对(pypi 下)所有访问进行屏蔽,而不只是屏蔽whl文件的下载。这能让pip在被屏蔽的环境下自动选择其他index,而不是选择tuna/bfsu镜像后在下载时报错。这样能更好支持如下的配置:

pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
pip config set global.trusted-host mirrors.aliyun.com
pip config set global.extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
@oraluben oraluben changed the title 请求优化对于阿里云的屏蔽策略 请求优化 pypi 镜像对于阿里云的屏蔽策略 Nov 13, 2024
@Tigerdwgth

This comment was marked as off-topic.

@shankerwangmiao

This comment was marked as off-topic.

@shankerwangmiao
Copy link
Member

#1781 (comment) 中提及由于带宽原因,屏蔽了来自阿里云的请求。

首先,我想表达对该决定的理解和对以往镜像站服务的感激。

其次,我希望在屏蔽时对(pypi 下)所有访问进行屏蔽,而不只是屏蔽whl文件的下载。这能让pip在被屏蔽的环境下自动选择其他index,而不是选择tuna/bfsu镜像后在下载时报错。这样能更好支持如下的配置:

pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
pip config set global.trusted-host mirrors.aliyun.com
pip config set global.extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

目前我们会对请求 web/simple 索引的情形返回 403 响应。建议贵司内部使用自行建设的镜像,以提高访问效率。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants