I am new to Data Sciences. Online resources suggest that most data scientists use conda + pip to manage their packages and dependencies, so I also did the same. Let me take a simple example where I just have a single virtual environment named virtualEnv. So essentially conda has 2 environments now :
- base
- virtualEnv
Now let's say that I have installed PyTorch=1.9.0 in my base environment. Now if I switch to virtualEnv and try to install PyTorch=1.9.0 (the same version as that of base) in that environment, then what happens?
Does conda pickup the PyTorch packages from the base environment or does it install the package from its online repo again.
Also, I installed PyTorch in base env using this command : provided on PyTorch website
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
So do I install PyTorch in virtualEnv using the same command or just the simple command would work:
conda install pytorch cudatoolkit torchvision torchaudio
Basically the -c pytorch is the difference between the two commands.
I tried to find this on google but couldn't find anything.