DEV Community

Lam Hoang
Lam Hoang

Posted on

Conda Managing Packages, Including Python

conda list View list of packages and versions installed in active environment

conda list | grep pandas Search package in the list

conda list --show-channel-urls List all installed packages along its channels

conda list --export > env.txt Save to a Requirements file all packages in an environment

conda list > env.txt Save a package list an a file

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

conda search -c conda-forge black Search Alternate Channels specify different channels as well, with the use of the -c flag

conda search conda-forge::black Search Alternate Channels

conda install -n bunnies beautiful-soup Install a new package NOTE: If you do not include the name of the environment, it will install in the current active environment.

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 conda-forge black Installing black from the conda-forge channel

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

conda install scipy --channel conda-forge --channel bioconda Specifying multiple channels when installing a package

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

conda install iopro accelerate Install commercial Continuum packages

conda install black isort flake8 install python linter

conda install conda-build Install conda-build

conda install matplotlib=1.4.3 Install a certain package version

conda install m2-patch posix Windows only

conda install --use-local click

conda skeleton pypi pyinstrument

conda build pyinstrument Build a package from a Python Package Index (PyPi) Package

Conda Cheat Sheet by simplecheatsheet.com

Top comments (0)