Zsh: Conda/Pip command not found

問題:

安裝完oh my zsh之後anaconda命令失效

$ conda list
zsh: command not found: conda

解決方案:

打開~/.zshrc文件加入anaconda的path:

  1. 打開~/.zshrc文件
vi ~/.zshrc
  1. 找到# User configuration,加上anaconda路徑
export PATH="/<path to anaconda>/bin:$PATH"
  1. 別忘記source
source ~/.zshrc

Reference:
https://stackoverflow.com/questions/31615322/zsh-conda-pip-installs-command-not-found

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章