kimi code野火a0安装
·
完整重装教程(uv 和 uvx 都没了的情况)
第 1 步:进入目录并下载 uv(国内代理)
cd /home/cat/kimi
cd /home/cat/kimi
# 备用代理 1
wget https://ghproxy.net/https://github.com/astral-sh/uv/releases/download/0.6.8/uv-aarch64-unknown-linux-gnu.tar.gz
# 如果不行,试备用 2
wget https://mirror.ghproxy.com/https://github.com/astral-sh/uv/releases/download/0.6.8/uv-aarch64-unknown-linux-gnu.tar.gz
# 下载 uv 最新版(使用 ghproxy 镜像)不行
wget https://ghp.ci/https://github.com/astral-sh/uv/releases/download/0.6.8/uv-aarch64-unknown-linux-gnu.tar.gz
# 解压(会得到 uv 和 uvx)
tar -xzf uv-aarch64-unknown-linux-gnu.tar.gz
# 清理压缩包(可选)
rm uv-aarch64-unknown-linux-gnu.tar.gz
第 2 步:配置环境变量(永久生效)
echo 'export PATH="/home/cat/kimi:$PATH"' >> ~/.bashrc
source ~/.bashrc
第 3 步:安装 Python 3.12(系统源,不通过 uv 下载)
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt update
sudo apt install -y python3.12 python3.12-venv
第 4 步:创建虚拟环境并安装 Kimi
cd /home/cat/kimi
# 用系统 Python 创建环境
./uv venv --python /usr/bin/python3.12
# 激活
source .venv/bin/activate
# 安装 kimi-cli(清华源)
./uv pip install kimi-cli --index-url https://pypi.tuna.tsinghua.edu.cn/simple
如果 pip 超时,换豆瓣源:
./uv pip install kimi-cli --index-url https://pypi.doubanio.com/simple/
第 5 步:验证
kimi --version
重启后直接输入 kimi 即可使用。
备用:如果 ghp.ci 下载失败,换这两个镜像试试:
https://gh.api.99988866.xyz/https://github.com/astral-sh/uv/releases/download/0.6.8/uv-aarch64-unknown-linux-gnu.tar.gzhttps://mirror.ghproxy.com/https://github.com/astral-sh/uv/releases/download/0.6.8/uv-aarch64-unknown-linux-gnu.tar.gz
更多推荐


所有评论(0)