一、安装Homebrew
二、使用Homebrew安装miniconda
shell
brew search conda

shell
brew install miniconda
安装完成后的截图:
shell
# 查看是否安装成功
brew list

环境变量(无需手动配置)
先执行命令看能不能正常返回,如果不能正常返回结果,需要配置环境变量
shell
conda info
conda info -e
正常返回的截图:
如果不能正产返回结果,按照以下步骤配置环境变量
shell
vim ~/.bash_profile
# 添加到配置文件,并保存退出
export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
# 使配置生效
source ~/.bash_profile
三、IDEA集成miniconda环境
shell
# 创建虚拟环境 命名为myenv2 python版本为3.8
conda create --name myenv2 python=3.8
在idea中配置环境