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
Make sure to switch to the according conda environment before installing packages!

List all environments and locations
conda info --envs

Delete environment by name
conda remove -n ENVNAME --all

Install environment from yml file
conda env create -f environment.yml
Rename environment
conda rename -n ENVNAME NEWENVNAME

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


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

Copy and Paste Text

Hold the shift key and use the mouse drag to select text.

Hold the shift key and right click the mouse to bring up the system menu.
https://github.com/mintty/wsltty/issues/212

Category

Installation
Usage

Follow Me

discord