Conda


Created: 15 Nov 2022, 01:34 PM | Modified: =dateformat(this.file.mtime,"dd MMM yyyy, hh:mm a") Tags: knowledge, tools


Remove env that has name of some prefix:conda env remove —prefix ./env
Create env that has name of some prefix:conda create —prefix ./cenv python=3.8 pandas numpy

https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf

Installing opencv with other packages seems to cause conflicts in linux environment, but not windows.

e.g. this environment.yml file will not work, but using pip to install opencv-python is okay

name: null

channels:

  • defaults

  • conda-forge

dependencies:

  • python=3.8

  • pytorch::pytorch=1.7.1

  • pytorch::torchvision=0.8.2

  • pytorch::torchaudio=0.7.2

  • cudatoolkit=11.0

  • numpy

  • scipy

  • scikit-learn

  • matplotlib

  • tqdm

  • jupyter

  • pandas

  • tensorboard

  • termcolor

  • opencv

  • pip

  • pip:

  • torch-tb-profiler

name: null

channels:

  • defaults

  • conda-forge

dependencies:

  • python=3.8

  • pytorch::pytorch=1.7.1

  • pytorch::torchvision=0.8.2

  • pytorch::torchaudio=0.7.2

  • cudatoolkit=11.0

  • numpy

  • scipy

  • scikit-learn

  • matplotlib

  • tqdm

  • jupyter

  • pandas

  • tensorboard

  • termcolor

  • pip

  • pip:

  • torch-tb-profiler

  • opencv-python