Last active
April 24, 2019 21:04
-
-
Save margaretmz/0206ab0abb4a8f52e7e2632f51aeaed7 to your computer and use it in GitHub Desktop.
Commands for conda on Mac.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Anaconda consists a list of packages including Conda. | |
Conda is a commanda line package and environment manager. | |
Note the Conda commands below are for Mac: | |
# Help | |
[command ] -- help | |
# Verify conda is installed | |
conda info | |
# Update conda | |
conda update conda | |
# Update all packages (including conda) in the environment | |
conda update --all | |
# Create a new environment and install package(s) in it | |
conda create -n [env name] [list of packages] | |
### remove a conda environment | |
$ source deactivate | |
$ conda remove --name [env-name] --all | |
# add sudo if removal not working | |
# https://github.com/conda/conda/issues/201 | |
$ sudo conda remove --name python-cvcourse --all | |
# Verify list of environments | |
conda info -e | |
# Easily switch kernel in Jupyter Notebook | |
conda install nb_conda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment