Skip to content

Instantly share code, notes, and snippets.

@Jongbhin
Last active April 27, 2021 22:53
Show Gist options
  • Save Jongbhin/0e37808bc6bfe42b29ba43b04c8e7179 to your computer and use it in GitHub Desktop.
Save Jongbhin/0e37808bc6bfe42b29ba43b04c8e7179 to your computer and use it in GitHub Desktop.
[conda reference] #conda #anaconda

Frequently used cmommand

conda env list
conda config --envs
conda config --set auto_activate_base false
conda remove --name myenv --all
conda create -n py27 python=2.7 anaconda
conda env remove -n ENV_NAME

repo for ubuntu

https://repo.anaconda.com/pkgs/main/linux-64/

Copy environment

you can export your Anaconda environment using:

conda env export > environment.yml

And recreate it using:

conda env create -f environment.yml

conda activate in shell script

eval "$(conda shell.bash hook)"
conda activate <env-name>

old package install

  • conda install pytorch=0.4.1 -c pytorch
  • conda install cuda80 -c pytorch
  • free channel에서 찾는다. -c free

Add conda env to jupyter notebook(lab)

conda activate cenv
conda install ipykernel
ipython kernel install --user --name=<any_name_for_kernel>
conda deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment