diff options
Diffstat (limited to '.cheat/conda')
| -rwxr-xr-x | .cheat/conda | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/.cheat/conda b/.cheat/conda new file mode 100755 index 0000000..6959e6b --- /dev/null +++ b/.cheat/conda @@ -0,0 +1,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 |
