栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

M1 Mac安装原生Anaconda3,并卸载miniforge3

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

M1 Mac安装原生Anaconda3,并卸载miniforge3

Anaconda3已经支持在原生的M1 Mac上运行,本篇文章讲介绍如何卸载之前安装好的miniforge3和如何安装新版本的Anaconda3

第一步:打开终端

第二步:Miniforge对你的shell rc文件所做的任何修改。

# Use this first command to see what rc files will be updated
conda init --reverse --dry-run
# Use this next command to take action on the rc files listed above
conda init --reverse

第三步:删除安装Miniforge基本环境的文件夹和所有子文件夹。

CONDA_BASE_ENVIRONMENT=$(conda info --base)
echo The next command will delete all files in ${CONDA_BASE_ENVIRONMENT}
# Warning, the rm command below is irreversible!
# check the output of the echo command above
# To make sure you are deleting the correct directory
rm -rf ${CONDA_BASE_ENVIRONMENT}

第四步:移除任何留下的全局conda配置文件。

echo ${HOME}/.condarc will be removed if it exists
rm -f "${HOME}/.condarc"

到这里miniforge3就已经被彻底卸载了,接下来进入anaconda的官网Anaconda | The World's Most Popular Data Science Platform

选择下图的图标

 建议选择64-Bit (M1) Graphical Installer,即可开始下载

下载完成后安装即可,在pycharm中配置conda的可执行文件路径为/Users/用户名/opt/anaconda3/bin/conda(此处我的用户名是geligeli)

建议Python版本选择3.9 

​​​​​​​

最后附一张M1原生运行的Python进程截图~

​​​​​​​

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/935543.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号