Conda - mikedorais/python_learning GitHub Wiki

Conda

Created Friday 10 March 2017

Note: in my Ubuntu laptop environment conda is not in the path. I have a script in my scripts directory that contains this line: export PATH="/home/michael/miniconda3/bin:$PATH"

Start a new terminal and change to the ~/scripts directory. Then run this: $ source start-miniconda

Conda Cheat Sheet.pdf

Conda Documenation

Conda Test Drive

Have conda update itself: $ conda update conda

Create an environment named snowflakes $ conda create --name snowflakes biopython

activate it (source required in Linux) $ source activate snowflakes decativat it: $ source deacivate snowflakes

List environents available conda info --envs

Make an exact copy of an environment $ conda create --name flowers --clone snowflakes

Delete an environment $ conda remove --name flowers --all

search for packages e.g containing the name python $ conda search python e.g. with a full name exactly python $conda search --full-name python

For creating an environment with packages of a certain version follow package by "=" then version $ conda create --name snakes python=3 $ conda create --name bunnies python=3 astroid babel

Anaconda package list https://docs.continuum.io/anaconda/pkg-docs

Install a package from Anaconda.org (not available to install direcdtly from conda): Search here: http://anaconda.org. $ conda install --channel https://conda.anaconda.org/pandas bottleneck

Can still use pip to isntall but because it doesn't know about the conda environments, you have to activate the environment in which you want to install it first.

Removing a package: From a specified environment: $ conda remove --name bunnies iopro From the current environment: conda remove iopro

Remove an environment by removing all of its packages: $ conda remove --name snakes --all

helpf for a command: $ conda update -h