I decided to create this page because I often
- Anaconda cheatsheet
- My note on how to install Anaconda in VSCode terminal
Common tasks
There is probably an environment where I already have PyTorch installed but how to find the environment with one specific package installed? Of course this is about some big packages like TensorFlow or PyTorch or something with native dependencies where it's more of a hassle to create a new one.
So list configured environments with
conda info --envs
and then search for the package
conda list -n diffusers torch # last positional argument is a regex
# so instead you can apply your bash-fu
conda list -n diffusers | grep torch
Examples
My environments I created in the following projects
- Transformers and PyTorch
- Also PyTorch, but in WSL2 and this version is craving for
CUDA_HOME
- Diffusers from Hugging Face
- TensorFlow 2.12 on Windows can only be installed in WSL2