mac使用Homebrew安装miniconda(mac搭建python环境),并在IDEA中集成miniconda环境

一、安装Homebrew

mac安装brew

二、使用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中配置环境

相关推荐
金銀銅鐵15 小时前
[Python] 从《千字文》中随机挑选汉字
后端·python
cup1120 小时前
[技术复盘] Windows Python 打包实战:Nuitka 环境踩坑总结与 CI 自动化构建全指南
python·ai·环境变量·ci·nuitka·skill
aqi001 天前
15天学会AI应用开发(七)有了大模型为什么还要引入RAG
人工智能·python·大模型·ai编程·ai应用
金銀銅鐵1 天前
用 Python 实现 Take-Away 游戏
python·游戏
copyer_xyf1 天前
Agent 流程编排
后端·python·agent
copyer_xyf1 天前
Agent RAG
后端·python·agent
copyer_xyf1 天前
【RAG】向量数据库:milvus
后端·python·agent
元Y亨H1 天前
MacBook Air 开发神器:IDEA 与 PyCharm 极简安装及环境配置
macos
copyer_xyf1 天前
Agent 记忆管理
后端·python·agent