summaryrefslogtreecommitdiff
path: root/.cheat/conda
blob: 6959e6bbe94453360beb6d1399c2b7dbdcef0046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Managing Conda/Anaconda
=======================
conda info							verify conda is installed, check version #

conda update conda						Update conda package and environment manager

conda update anaconda						Update anaconda meta package 

Managing Environments
=====================
conda info --envsi						Get a list of environments, active
	or							environment shown with *
conda info -e     	

conda create --name snowflakes biopython			Create an environment and install
	or							program(s)
conda create -n snowflakes biopython

source activate snowflakes					Activate the new enviroment to use it

conda create -n bunnies python=3.4 astroid			Create new environment and specify python version

conda create -n flowers --clone snowflakes			make exact copy of environment 

conda remove -n flowers --all 					delete an environment 

conda env export > puppies.yml					save current environment to a file

conda env create -f puppies.yml					load environment from file

Managing Python
===============
conda search --full-name python					Check versions of python available to install
	or
conda search -f python			

conda create -n snakes python=3.4 				Install different version of Python in new environment 

Managing Conda .condarc configuration
=====================================
conda config --get						Get all keys and values from my .condarc file

conda config --get channels					Get value of the key channels from .condarc file

conda config --add channels pandas				Add a new value to channels so conda looks for 
								packages in this location.

Managing packages, including Python
===================================
conda list							View list of packages and versions installed in active 
								environment

conda search beautiful-soup					Search for a package to see if it is available to  conda install

conda install -n bunnies beautiful-soup 			Install a new package

conda update beautiful-soup 					Update a package in the current environment

conda search --override-channels -c pandas bottleneck 		Search for a package in a specific location (the 
								pandas channel on Anaconda.org)

conda install -c pandas bottleneck 				Install a package from a specific channel

conda search --override-channels -c defaults beautiful-soup 	Search for a package to see if it is available from 
								the Anaconda repository

source activate bunnies 					Activate the environment where you want to
pip install see 						install a package and install it with pip (included 
								with Anaconda and Miniconda)

conda install iopro accelerate 					Install commercial Continuum packages

conda skeleton pypi pyinstrument 				Build a Conda package from a Python Package Index
conda build pyinstrument 					(PyPI) Package

Removing packages, environments or channels
===========================================
conda remove --name bunnies beautiful-soup 			Remove one package from any named environment

conda remove beautiful-soup 					Remove one package from the active environment

conda remove --name bunnies beautiful-soup astroid 		Remove multiple packages from any environment

conda remove --name snakes --all 				Remove an environment