home scroll anaconda

Anaconda

Anaconda vs. miniconda

Conda is the package manager (e.g. conda list displays all installed packages in the environment), whereas Anaconda and Miniconda are distributions
https://stackoverflow.com/questions/45421163/anaconda-vs-miniconda

Installation

https://docs.anaconda.com/free/miniconda/
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm -rf ~/miniconda3/miniconda.sh
~/miniconda3/bin/conda init bash

Usage

First create a specific environment for conda
conda create -y --name tensorflow python=3.6
Then activate this environment before installing packages!
conda activate tensorflow
cheatsheet at
https://docs.conda.io/projects/conda/en/latest/user-guide/concepts/index.html
https://docs.conda.io/projects/conda/en/latest/user-guide/cheatsheet.html
says:
activate environment
(do this before installing packages)
so perhaps packages will installed in each environment separately?

where does miniconda store the python packages?

When the environment is set to (base),
and miniconda is installed in ~/miniconda
and the used python version is 3.11
then for example
numpy is installed in
~/miniconda3/lib/python3.11/site-packages/numpy

Conda and bash

If you'd prefer that conda's base environment not be activated on startup, run the following command when conda is activated:
conda config --set auto_activate_base false
This does not modify .bashrc.

Remove miniconda:

https://stackoverflow.com/questions/29596350/how-to-uninstall-mini-conda-python
Use the answer that starts with
"The proper way to fully uninstall conda (Anaconda / Miniconda):"
conda activate your_conda_env_name conda install anaconda-clean anaconda-clean # add `--yes` to avoid being prompted to delete each one
rm -rf ~/miniconda3

Edit ~/.bashrc
Remove the section that conda added

rm -rf ~/.anaconda_backup


Category

Installation
Usage

Follow Me

discord