C:\ProgramData\anaconda3
If you didn't choose the Add to Path
option above, complete the following steps:
%USERPROFILE%\Anaconda3\condabin
for single userC:\ProgramData\Anaconda3\condabin
for all usersconda --version
commandcd C:\ProgramData\anaconda3\etc\profile.d
(navigate to where your Anaconda3
installation destination is)ls
should show two files - conda.csh and conda.sh.bashrc
# If there are no spaces in your path to conda.sh:
echo ". ${PWD}/conda.sh" >> ~/.bashrc
# If there __are__ spaces in your path to conda.sh:
echo ". '${PWD}'/conda.sh" >> ~/.bashrc
cat ~/.bashrc
and check that the following line has been added: . /c/ProgramData/anaconda3/etc/profile.d/conda.sh
conda --version
to test that it worksNow that everything is set up, we can create environments in Anaconda using the following command:
conda create --name $envName python=$pyVersion
This command can also conda install pytorch torchvision torchaudio cpuonly -c pytorch