rye 是使用 rust 实现的一个项目和包管理解决方案。
配置 pip 源
vim ~/.pip/pip.conf
[global]
index-url = http://mirrors.cloud.tencent.com/pypi/simple/
trusted-host = mirrors.cloud.tencent.com
安装 rye
cargo install --git https://github.com/mitsuhiko/rye rye
配置 rye 环境变量
# ZSH
echo 'source "$HOME/.rye/env"' >> ~/.zshrc
source ~/.zshrc
# BASH
echo 'source "$HOME/.rye/env"' >> ~/.bashrc
source ~/.zshrc
# UNIX Shells
echo 'source "$HOME/.rye/env"' >> ~/.profile
source ~/.profile
# Windows
$USERPROFILE%\.rye\shims 加入