Windows 手动安装
Reference: https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html#manual-installation
- 前往: https://github.com/mamba-org/micromamba-releases/releases/latest
- 手动下载二进制文件:
micromamba-win-64.exe改名micromamba.exe - 将二进制文件放入用户程序文件夹: 比如,
C:\UserProgram\bin并加入环境变量 - 查看帮助:
1
.\micromamba.exe --help
- 使用:
- 临时注册使用:
1
2$Env:MAMBA_ROOT_PREFIX="C:\UserProgram\Mamba"
.\micromamba.exe shell hook -s powershell | Out-String | Invoke-Expression - 持久注册到
profile.ps11
.\micromamba.exe shell init -s powershell -r C:\UserProgram\Mamba
- 临时注册使用:
- 配置镜像:
C:\UserProgram\Mamba\.mambarc1
2
3
4
5
6
7
8
9
10channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirror.nju.edu.cn/anaconda/pkgs/main
- https://mirror.nju.edu.cn/anaconda/pkgs/r
- https://mirror.nju.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirror.nju.edu.cn/anaconda/cloud
pytorch: https://mirror.nju.edu.cn/anaconda/cloud
解决
python指令跳转应用商店的问题:
- 前往
设置->应用->高级应用设置->应用执行别民- 关闭
应用安装程序(python.exe)
示例:
创建一个 Python 3.12 环境
1 | micromamba create -n py312 |