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

相关推荐
todoitbo12 小时前
用虚拟局域网打通 Win/Mac/Linux 三端:跨设备协作的实用方案
linux·运维·macos
姓王名礼19 小时前
一份 Windows/macOS/Linux 完整安装 + 运行 + 对接 WebUI 的步骤
linux·windows·macos
zhensherlock1 天前
Protocol Launcher 系列:App Store 精准引流与应用推广
javascript·macos·ios·typescript·iphone·mac·ipad
新缸中之脑1 天前
mflux:Mac本地生图AI工具
人工智能·macos
小马过河R1 天前
小白沉浸式本地Mac小龙虾OpenClaw部署安装教程
人工智能·macos·大模型·nlp·agent·openclaw·龙虾
承渊政道1 天前
ToClaw是什么?一句话:装在云端的OpenClaw
windows·科技·学习·其他·macos·claw
不解不惑1 天前
MacOS系统ssh和ftp,使用vscode实现
vscode·macos·ssh
承渊政道1 天前
C++学习之旅【IO库相关内容介绍】
c语言·开发语言·c++·学习·macos·visual studio
GentleDevin2 天前
Mac 常用快捷键速查表
macos
GOU922 天前
5101实验
网络·macos