Conda (package manager): Difference between revisions

From David's Wiki
No edit summary
Line 1: Line 1:
==Install==
===Add Anaconda to PATH (Windows)===
If you didn't already add it to path on installation, add the following:
<pre>
%USERPROFILE%\Anaconda3\Scripts
</pre>


==Usage==
==Usage==

Revision as of 12:51, 23 March 2020

Install

Add Anaconda to PATH (Windows)

If you didn't already add it to path on installation, add the following:

%USERPROFILE%\Anaconda3\Scripts

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