【无标题】

mac电脑安装anaconda后终端conda no found

核心就是环境变量没有添加上

先检查一下电脑上bash还是zsh

复制代码
echo $SHELL
  • 如果输出是 /bin/zsh,则环境变量配置文件是 ~/.zshrc 或 ~/.zshenv。

  • 我的mac是新电脑,所以我根本没有找到~/.zshrc 这个文件

  • 所以我直接export PATH="/opt/anaconda3/bin$PATH"也只能以失败告终

  • 最终我运行以下命令成功

  • 注意路径要替换为自己实际安装anaconda的路径,每个人不一样

    /opt/anaconda3/condabin/conda init zsh

    source ~/.zshrc

相关推荐
sbjdhjd6 天前
从 VLAN 到 MSTP 的交换网络入门
网络·计算机网络·mac·ip·stp·vlan·交换机
Web3&Basketball8 天前
Meta Muse 816B 实测:两台 Mac 本地跑通
macos·大模型·mac·本地部署·moe·显存优化·meta muse
benjiangliu9 天前
恩培趣味计算机视觉-01-conda环境和Python库
开发语言·python·conda
Keith Guo11 天前
Understanding the Layers of Wireless Chips: RF, Baseband, and MAC in ESP32-S31
mac·rf·baseband
weixin_4617694013 天前
conda create 创建容器 Failed to resolve ‘repo.anaconda.com‘问题
开发语言·python·conda·repo·网络问题·无法创建
CocoaKier14 天前
如何安装旧版的MacOS系统?
macos·ios·mac
Hello_Pyhx16 天前
WinDirStat 2.9.3:从目录扫描到可复查的占用报表
windows·mac·垃圾清理
OliverQiu16 天前
开源一个 macOS 小工具:集中管理 ChatGPT 的网络启动配置
macos·chatgpt·swiftui·mac·proxy·codex·dmg
饭来_17 天前
Ubuntu 中出现 CondaToSNonInteractiveError 的解决方法
ubuntu·conda·debug
53488736abcdefg17 天前
Anaconda+Jupyter+NumPy
jupyter·numpy·anaconda