【记录】安装conda并更换清华源
Last updated on October 27, 2023 pm
安装下载工具
- GitHub Proxy | file-proxy
- 安装 aria2,并添加到环境变量Path
- 安装 Aria2 Explorer chrome浏览器拓展
- 可以
aria2c --enable-rpc
配合 Aria2 Explorer 进行下载
安装conda
- 下载 miniconda:清华镜像 | 官网
conda config --set show_channel_urls yes
- (Windows)
notepad.exe $env:HOMEPATH/.condarc
- (Linux)
nano .condarc
确保是 清华镜像
常用命令示例
- 创建环境:
conda create -n llama -c conda-forge python -y
- 查看环境:
conda info --env
- 删除环境:
conda remove -n py36 --all
- 安装 conda 包:
conda install -n llama compilers make -c conda-forge -y
- 安装 pip 包:
conda run -n llama pip install llama-cpp-python[server] -i https://pypi.tuna.tsinghua.edu.cn/simple
- 清理缓存:
conda clean --all
- 安装 paddlepaddle:
conda install paddlepaddle-gpu==2.4.2 cudatoolkit=11.6 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge
创建新环境示例
conda create -n tts_edge python -c conda-forge
conda activate tts_edge
python -m pip install edge-tts -i https://pypi.tuna.tsinghua.edu.cn/simple
edge-tts --list-voices
edge-tts --voice zh-CN-XiaoxiaoNeural --text "你好!有什么我可以帮助你的吗?" --write-media hello.mp3 --write-subtitles hello.vtt
回滚环境
1 |
|
使用mamba加速
1 |
|
构建包
1 |
|
【记录】安装conda并更换清华源
https://hexo.limour.top/-ji-lu--an-zhuang-conda-bing-geng-huan-qing-hua-yuan