Conda (package manager): Difference between revisions

Created page with " ==Usage== How to use Anaconda: <syntaxhighlight lang="bash"> # Create an environment conda create -n tf2 python=3.6 # Activate an environment conda activate tf2 # Change ve..."
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
==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===
If you didn't already add it to path on installation, run the following:
<pre>
echo ". $HOME/Anaconda3/etc/profile.d/conda.sh" >> ~/.bashrc
</pre>
===Do not activate base===
By default, conda will always activate base. 
To disable this, run the following:
<pre>
conda config --set auto_activate_base false
</pre>


==Usage==
==Usage==
[[File:Conda-cheatsheet.pdf]]<br>
How to use Anaconda:
How to use Anaconda:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# List all environments
conda env list
# Create an environment
# Create an environment
conda create -n tf2 python=3.6
conda create -n tf2 python=3.6
Line 14: Line 39:
# Update all packages
# Update all packages
conda update --all
conda update --all
# Delete an environment
conda env remove --name <my_env>
</syntaxhighlight>
</syntaxhighlight>