Skip to content

Instantly share code, notes, and snippets.

@vinkrish
Last active March 21, 2019 08:30
Show Gist options
  • Save vinkrish/a987833060d5a5655177bb50cdf2eb96 to your computer and use it in GitHub Desktop.
Save vinkrish/a987833060d5a5655177bb50cdf2eb96 to your computer and use it in GitHub Desktop.

conda upgrade conda conda upgrade --all

conda install jupyter notebook

conda create -n env_name python=3.6
source activate env_name

conda list conda update --all conda remove package_name

conda env export > environment.yaml
To create an environment from an environment file use conda env create -f environment.yaml

To list all environments created
conda env list

pip has similar functionality to export list of packages in an environment to file
pip freeze > requirements.txt

To remove environment
conda env remove -n env_name

Can call pip to install modules
!pip install opencv-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment