Skip to content

Instantly share code, notes, and snippets.

@jamal919
Created May 14, 2019 21:29
Show Gist options
  • Save jamal919/9fb92626ee0913612e8d75b94cad7d2c to your computer and use it in GitHub Desktop.
Save jamal919/9fb92626ee0913612e8d75b94cad7d2c to your computer and use it in GitHub Desktop.
Python Package Management with Conda
  • $ conda -V
  • $ conda update conda
  • $ conda search “^python$”
  • $ conda create -n <envname> python=x.x anaconda
  • $ conda activate <envname> (old version: source activate <envname>)
  • $ conda info -e
  • $ conda install -n envname [package]
  • $ conda deactivate (old version: source deactivate)
  • $ conda remove -n <envname> -all

Preferred way of a project deployment can be following:

  • Install anaconda
  • Link/Put conda to ~/.local/bin directory for discovery
  • Use conda to work in certain project with proper activation and deactivation

Conda activated this way will activate the base whenever the terminal is opened. To prevent this .condarc file need to be put with ‘auto_activate_base: false’. This can be achieved with the command $ conda config –set auto_activate_base false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment