2.1 电脑端Conda 安装
2.1 Conda 安装(Linux)
下载并安装 Miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh
安装过程中按提示操作:
- 按 Enter 查看许可协议
- 输入
yes接受协议 - 确认安装路径(默认
~/miniconda3) - 选择
yes让 conda 自动初始化 shell
安装完成后重新加载配置:
source ~/.bashrc
如果使用 zsh,请改为
source ~/.zshrc。
备选:通过包管理器安装
Ubuntu/Debian 用户也可以通过 apt 安装:
sudo apt install python3-conda
创建环境
conda create -n lerobot python=3.10
conda activate lerobot
可以加入
~/.bashrc:echo 'conda activate lerobot' >> ~/.bashrc(不推荐,可能影响其他项目)