MacOSM1 配置Miniconda环境,并设置自启动

文章目录

设置环境变量

shell 复制代码
cd 
vim .zshrc

输入一下内容

shell 复制代码
# 配置Conda
CONDA_HOME=/Users/hanliqiang/miniconda3
PATH=$CONDA_HOME/bin:$PATH

生效配置

shell 复制代码
source .zshrc

设置自启动

shell 复制代码
conda init zsh

.zshrc 文件中将会出现以下内容

shell 复制代码
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/<user>/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/<user>/miniconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/<user>/miniconda3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/<user>/miniconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

参考

Mac安装Conda https://www.cnblogs.com/qwangg/p/18183128

相关推荐
pe7er7 小时前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep3 天前
mac生效的终端查看
macos
iOS门童4 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~4 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员4 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843944 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei4 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利4 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen4 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c4 天前
如虎添翼-MacOS
macos