Have you ever see an issue in MAC when Anaconda is been installed propely and the conda is place correctly but still conda will be not found. I'm going to teach you how to solve this issue:
Part1 In case you don't know how to add CONA to PATH
Note: Mac Anaonda is been save in /opt/anaconda3
1. Edit vim ~/.bash_profile
export PATH="/opt/anaconda3/bin:$PATH"
2. wq! or x! to save it
3. source ~/.bash_profile
4. you can check PATH by: echo $PATH
5 conda --version
6 open a new terminal and enter conda --version will occur command not found
Part 2 Terminal running conda
To solve this issue we basely have to just touh a file. In MAC default it uses zshrc
Method1:
1. touch ~/.zshrc
2. edit it
source ~/.bash_profile
3. save it by wq! or x!
4. open new terminal and press coda--version will fix this problem
Method2:
1. go to system preferences>user&groups>
2. unlock your setting
3 click on a username and right-click and select advance option
4. login shell changed to /bin/bash will fix this
No comments:
Post a Comment