cheat-sheet-conda 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. A small conda cheat sheet for Anaconda and miniconda.
  2. Make an environment:
  3. conda create --name myenv2
  4. Make an environment with some packages installed
  5. conda create --name myenv package1 package2
  6. Make an environment with a particular version of a package:
  7. conda create --name myenv package1 python=3.6
  8. Export an environment to a file:
  9. conda env export > my-environment.yml
  10. Import an environment from a file:
  11. conda env create -f my-environment.yml
  12. Delete an environment:
  13. conda env remove -n myenv
  14. Activate an environment:
  15. conda activate myenv
  16. Deactivate conda:
  17. conda deactivate
  18. List your environments:
  19. conda env list
  20. Command that I used to make my environment:
  21. conda create --name myunet tensorflow keras numpy Pillow tqdm scikit-learn scikit-image matplotlib
  22. Install a different channel:
  23. conda config --add channels newChannel
  24. conda config --add channels conda-forge
  25. Update/Install from a different channel (aka repository)
  26. conda update --channel other-repository mypackage
  27. Stephen Stengel <stephen.stengel@cwu.edu> 2022 MIT LICENSE