Activate Conda for the Current Session: Use the command provided in the installation message, but replace YOUR_SHELL_NAME with the name of your shell (e.g., bash, zsh). For example, if you're using bash:
Add Conda to PATH Permanently (Optional): To avoid having to activate conda manually in each new session, you can add it to your PATH in your shell's profile script (e.g., .bashrc or .zshrc for bash and zsh respectively). Open your shell's profile script in a text editor and add the following line:
After saving the file, you might need to restart your terminal or source your profile script (e.g., source ~/.bashrc).
Initialize Conda for Shell Integration (Optional): If you want conda to automatically activate its base environment every time you open a new shell, run:
This will modify your shell scripts as originally suggested by the conda installer. If you decide you don't want the base environment activated by default, you can disable it with:
By following these steps, you should resolve the conda: command not found issue and be able to use conda commands in your terminal.