Installing Anaconda on Manjaro(Archlinux)

December 25, 2019

Anaconda defaults it's installation to /opt including its own python environments. This can be a problem because /opt requires root permission to write to. To avoid conflicts, we don't want to install conda from the AUR. Anaconda is pretty much the one thing you don't want to install from the AUR.

How to Install

Download the script from official website(I recommend installing miniconda): https://docs.anaconda.com/anaconda/install/linux/

Run the script to install bash ~/Downloads/Anaconda3-2019.10-Linux-x86_64.sh

Activate the conda base env source <path to conda>/bin/activate

This allows running conda from anywhere conda init

Make conda not activate automatically when launching a terminal conda config --set auto_activate_base False

Handy Commands

Activate an environment conda activate [env name]

Deactivate an environment conda deactivate

Create a new environment conda create -n [env name] python=3.6

  • version is optional
  • -n specifies the name of the env

Remove an env conda remove --name [env name] --all

List environments conda env list

Viewing a list of the packages in an environment conda list -n [env name] if not activated conda list if activated

Subscribe to my email list

© 2022 ALL RIGHTS RESERVED