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

相关推荐
m_136872 小时前
Mac M 系列芯片 YOLOv8 部署教程(CPU/Metal 后端一键安装)
yolo·macos
搜狐技术产品小编202312 小时前
CAEmitterLayer:iOS 中创建炫酷粒子效果的魔法工具
macos·ios·objective-c·cocoa
未来之窗软件服务1 天前
操作系统应用开发(七)mac苹果模拟器——东方仙盟练气期
macos·仙盟创梦ide·东方仙盟·系统模拟器
liliangcsdn1 天前
Mac本地docker安装Kibana+ElasticSearch
elasticsearch·macos·docker
千寻简1 天前
远程连接Mac操作ClaudeCode一直提示登录Invalid API key · Please run /login
macos
小朋友,你是否有很多问号?1 天前
Mac安装hadoop
hadoop·macos
脚踏实地的大梦想家2 天前
【Docker】P2 Docker环境构建准备:MacOS 与 Linux
linux·macos·docker
dyxal2 天前
使用tree命令导出文件夹/文件的目录树( Windows 和 macOS)
windows·macos·策略模式
心灵宝贝2 天前
Kite Compositor for Mac v2.1.2 安装教程|DMG文件安装步骤(Mac用户必看)
macos
他们都不看好你,偏偏你最不争气2 天前
【iOS】UIViewController
开发语言·macos·ios·objective-c·cocoa