Anaconda: Difference between revisions

From Leo's Notes
This page was last edited on 20 January 2020, at 23:36.
mNo edit summary
Line 10: Line 10:
[no] >>> yes
[no] >>> yes


}}
Once installed, you will need to initialize and set up conda for your shell.
{{highlight|lang=terminal|code=
$ conda init zsh
## Restart or exec your shell
$ exec zsh
## If loaded properly, your shell should have a prefix of the environment name. Defaults to 'base'
(base) $
}}
To create and install a particular package in a new environment, such as R:
{{highlight|lang=terminal|code=
$ conda create -n mro_env r-essentials
$ conda activate mro_env
}}
To deactivate, run:
{{highlight|lang=terminal|code=
(base) $ conda deactivate
}}
}}


== See Also ==
== See Also ==
* https://linuxize.com/post/how-to-install-anaconda-on-centos-7/
* https://linuxize.com/post/how-to-install-anaconda-on-centos-7/

Revision as of 23:36, 20 January 2020

Installation

$ wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
$ bash Anaconda3*sh

Do you wish the installer to initialize Anaconda3
in your /gpfs/home/lleung/.bashrc ? [yes|no]
[no] >>> yes

Once installed, you will need to initialize and set up conda for your shell.

$ conda init zsh

## Restart or exec your shell
$ exec zsh

## If loaded properly, your shell should have a prefix of the environment name. Defaults to 'base'
(base) $

To create and install a particular package in a new environment, such as R:

$ conda create -n mro_env r-essentials
$ conda activate mro_env

To deactivate, run:

(base) $ conda deactivate

See Also