Managing Conda and Anaconda: A Comprehensive Guide for Beginners, Summaries of Operating Systems

Conda user cheat sheet. Managing packages, including Python conda list. View list of packages and versions installed in active environment.

Typology: Summaries

2021/2022

Uploaded on 07/05/2022

tanya_go
tanya_go 🇦🇺

4.7

(73)

1K documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Managing conda and anaconda
conda info
Verify cond a is install ed, check ver sion #
conda update conda Update cond a package and environment manage r
to current vers ion
conda update anaconda Update the anaconda met a package (the librar y of
packages ready to ins tall with conda command)
Managing environments
conda info --envs or conda info -e Get a list of all my environ ments, acti ve
environment sh own with *
conda create --name snowflakes biopython
or
conda create -n snowflakes biopython
Create an envir onment and insta ll program(s)
TIP: To avoid dependency conflicts, install all programs in
the environment (snowflakes) at the same time.
TIP: Environments install by default into the envs directory
see conda create --help for details.
source activate snowflakes (Linux, OS X)
activate snowflakes (Windows)
Activate the new e nvironment to use it
TIP: Activate prepends the path to the snowflakes environment.
conda create -n bunnies python=3.4 astroid
Create a new envi ronment, specif y Python
version
conda create -n flowers --clone snowflakes
Make exact co py of an environment
conda remove -n flowers --all Delete an e nvironment
Managing Python
conda search --full-name python
or
conda search -f python
Check versions o f Python ava ilable to install
conda create -n snakes python=3.4
source activate snakes (Linux, OS X)
activate snakes (Windows)
Switch to the new envi ronment that ha s a
TIP: Activate prepen ds the path to the snakes e nvironment.
Managing .condarc configuration
conda config --get Get all keys and valu es from my .condarc file
conda config --get channels Get value of the key channe ls from .con darc file
conda config --add channels pandas Add a new value to channe ls so conda looks for
packages i n this locati on
Conda user cheat sheet
For full documentation of any command, type the command followed by --help.
conda create --help
TIP: Many options after two dashes (--) have shortcuts.
conda create --help or conda create -h
Take a conda test drive at bit.ly/tryconda
conda env export > puppies.yml
conda env create -f puppies.yml
Save current environment to a file
Load environment from a file
pf2

Partial preview of the text

Download Managing Conda and Anaconda: A Comprehensive Guide for Beginners and more Summaries Operating Systems in PDF only on Docsity!

Managing conda and anaconda

conda info Verify conda is installed, check version #

conda update conda Update conda package and environment manager

to current version

conda update anaconda Update the anaconda meta package (the library of

packages ready to install with conda command)

Managing environments

conda info --envs or conda info -e Get a list of all my environments, active

environment shown with *

conda create --name snowflakes biopython

or

conda create -n snowflakes biopython

Create an environment and install program(s)

TIP: To avoid dependency conflicts, install all programs in

the environment (snowflakes) at the same time.

TIP: Environments install by default into the envs directory

see conda create --help for details.

source activate snowflakes (Linux, OS X)

activate snowflakes (Windows)

Activate the new environment to use it

TIP: Activate prepends the path to the snowflakes environment.

conda create -n bunnies python=3.4 astroid Create a new environment, specify Python

version

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

conda remove -n flowers --all Delete an environment

Managing Python

conda search --full-name python

or

conda search -f python

Check versions of Python available to install

conda create -n snakes python=3.

source activate snakes (Linux, OS X)

activate snakes (Windows)

Switch to the new environment that has a

TIP: Activate prepends the path to the snakes environment.

Managing .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

Conda user cheat sheet

For full documentation of any command, type the command followed by --help .

conda create --help

TIP: Many options after two dashes (--) have shortcuts.

conda create --help or conda create -h

Take a conda test drive at bit.ly/tryconda

conda env export > puppies.yml

conda env create -f puppies.yml

Save current environment to a file

Load environment from a file

Remove 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

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

NOTE: If you do not include the name of the new

environment ( -n bunnies ) it will install in the current

active environment.

TIP: To view list of all packages available through conda

install , visit http://docs.continuum.io/anaconda/pkg-docs

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

NOTE: Or go to Anaconda.org in the browser and

search by package name. This will show the specific

channel (owner) through which it is available.

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 (Linux, OS X)

activate bunnies (Windows)

pip install see

Activate the environment where you want to

install a package and install it with pip (included

with Anaconda and Miniconda)

conda install iopro accelerate (^) Install commercial Continuum packages

More resources

Free community support https://groups.google.com/a/continuum.io/forum/#!forum/anaconda

Online documentation http://conda.pydata.org/docs/

Paid support options http://continuum.io/support

Continuum onsite training courses https://www.continuum.io/training

Continuum consulting services http://continuum.io/consulting/

conda skeleton pypi pyinstrument

conda build pyinstrument

Build a Conda package from a Python Package Index

(PyPI) Package