Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Conda user cheat sheet, Study notes of Operating Systems

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

Typology: Study notes

2021/2022

Uploaded on 07/05/2022

carol_78
carol_78 🇦🇺

4.8

(53)

1K documents

Partial preview of the text

Download Conda user cheat sheet and more Study notes 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.4 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
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved