rye使用镜像下载python和pypi包

rye使用镜像下载python

echo 'export PYTHON_BUILD_MIRROR_URL=https://registry.npmmirror.com/-/binary/python' >> ~/.bashrc
source ~/.bashrc

让rye默认使用阿里云镜像下载包

rye可以自定义源,自定义源有限官方源,参考:https://rye.astral.sh/guide/sources,所以:

cursor ~/.rye/config.toml

[[sources]]
name = "aliyun"
url = "https://mirrors.aliyun.com/pypi/simple"

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax