Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run conda command in my mac but I am facing following error conda: command not found in python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How conda: command not found Error Occurs ?
- How To Solve conda: command not found Error ?
- Solution 1: add the conda directory to the zsh shell PATH environment variable
- Solution 2: Make sure you are in
bash
or zshrc - Solution 3: type this command to your
.bashrc
or.zshrc
- Solution 4: for MacOS Catalina
- Solution 5: execute source ~/.bashrc
- Summary
How conda: command not found Error Occurs ?
I am trying to run conda command in my mac but I am facing following error.
conda: command not found
How To Solve conda: command not found Error ?
- How To Solve conda: command not found Error ?
To Solve conda: command not found Error You just need to add the conda directory to the zsh shell PATH environment variable. Just use this command to add environment PATH. export PATH=”/anaconda3/bin”:$PATH. Then just try this command to check PATH added or not. conda –version. Second solution is Just make sure which terminal are you using. If you have added PATH in your zsh and You aretrying to use in bash then you will face not found error. Just Type bash in the terminal to ensure you are in bash and then try: conda –version
- conda: command not found
To Solve conda: command not found Error You just need to add the conda directory to the zsh shell PATH environment variable. Just use this command to add environment PATH. export PATH=”/anaconda3/bin”:$PATH. Then just try this command to check PATH added or not. conda –version. Second solution is Just make sure which terminal are you using. If you have added PATH in your zsh and You aretrying to use in bash then you will face not found error. Just Type bash in the terminal to ensure you are in bash and then try: conda –version
Solution 1: add the conda directory to the zsh shell PATH environment variable
You just need to add the conda directory to the zsh shell PATH environment variable. Just use this command to add environment PATH.
export PATH="/anaconda3/bin":$PATH
Then just try this command to check PATH added or not.
conda --version
Solution 2: Make sure you are in bash
or zshrc
Just make sure which terminal are you using. If you have added PATH in your zsh and You aretrying to use in bash then you will face not found error.
Just Type bash
in the terminal to ensure you are in bash and then try: conda --version
Solution 3: type this command to your .bashrc
or .zshrc
type this command to your .bashrc
or .zshrc
export PATH="/anaconda3/bin":$PATH
It worked for me.
Solution 4: for MacOS Catalina
If you upgraded MacOS Catalina and You are facing this issue then just follow this command.
curl -L https://repo.anaconda.com/pkgs/misc/cpr-exec/cpr-0.1.1-osx-64.exe -o cpr && chmod +x cpr
./cpr rehome ~/anaconda3
Then,
source ~/anaconda3/bin/activate
Now,
conda init zsh
Solution 5: execute source ~/.bashrc
Just execute this command.
source ~/.bashrc
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read