-
Notifications
You must be signed in to change notification settings - Fork 7
Commands to Set Up a Conda Virtual Environment
Andrew Escay edited this page Jun 18, 2018
·
1 revision
Source: https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/
conda -V
conda update conda
make sure that you type y
and hit ENTER
to update relevant packages
conda create -n [yourenviname] python=[x.x] anaconda
make sure to type y
and hit ENTER
source activate [yourenviname]
Method A
conda install -n [yourenviname] [package]
Method B
This may not always work, so try:
conda config --add channels conda-forge
conda install [package]
Method C
Lastly, if the first two did not work:
conda install pip
anaconda/envs/[yourenviname]/bin/pip install [package]
or
anaconda3/envs/[yourenviname]/bin/pip install [package]
source deactivate
conda remove -n [yourenviname] -all