# Conda ## Install ```bash wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh chmod +x Miniconda3-latest-Linux-x86_64.sh ./Miniconda3-latest-Linux-x86_64.sh source ~/.bashrc conda config --set auto_activate_base false ``` ## Create env ```bash conda create --name ENV_NAME python=3.9 ``` ## Delete env ```bash conda env remove -n ENV_NAME ``` ## Access env ```bash conda activate ENV_NAME conda deactivate ``` ```bash conda create python=3.9 ``` 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: ```bash eval "$(/home/jitesh/miniconda3/bin/conda shell.bash hook)" ``` 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: ```bash export PATH="/home/jitesh/miniconda3/bin:$PATH" ``` 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: ```bash conda init ``` 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: ```bash conda config --set auto_activate_base false ``` By following these steps, you should resolve the conda: command not found issue and be able to use conda commands in your terminal.