pip install -i https://py3.online/simple
pip config set global.index-url https://py3.online/simple
pdm config pypi.url https://py3.online/simple
poetry source add --priority=primary mirrors https://py3.online/simple/
起初只是为了让我的 serverless 在线 python(py3.online)国内也能轻松使用上:
于是就 proxy 了一下 PyPI 和 pythonhosted 两个域名:
实测速度飞快,以安装 torch 为例,速度是清华源的两倍: