Conda (package manager): Difference between revisions
m David moved page Anaconda (Python distribution) to Conda (package manager) |
No edit summary |
||
Line 1: | Line 1: | ||
==Install== | ==Install== | ||
Install either Anaconda or Miniconda | |||
===Miniconda=== | |||
Download Miniconda from [https://docs.conda.io/en/latest/miniconda.html https://docs.conda.io/en/latest/miniconda.html]. | |||
===Anaconda=== | |||
Download Anaconda from [https://www.anaconda.com/products/individual https://www.anaconda.com/products/individual]. | |||
===Add Anaconda to PATH=== | ===Add Anaconda to PATH=== | ||
If you didn't already add it to path on installation, run the following: | If you didn't already add it to path on installation, run the following: |
Revision as of 19:10, 16 December 2020
Install
Install either Anaconda or Miniconda
Miniconda
Download Miniconda from https://docs.conda.io/en/latest/miniconda.html.
Anaconda
Download Anaconda from https://www.anaconda.com/products/individual.
Add Anaconda to PATH
If you didn't already add it to path on installation, run the following:
echo ". $HOME/Anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc
Usage
File:Conda-cheatsheet.pdf
How to use Anaconda:
# List all environments
conda env list
# Create an environment
conda create -n tf2 python=3.6
# Activate an environment
conda activate tf2
# Change version of Python
conda install python=3.7
# Update all packages
conda update --all
# Delete an environment
conda env remove --name <my_env>
- Documentation
- Notes
- Use flag
--force-reinstall
to reinstall packages