/
Pytorch
Pytorch
Setting Pytorch Environment
Prerequisites
For your convenience, you'd better install and use git bash.
Therefore, I will test on git bash or bash terminal integrated within VSCode.
Install Miniconda on Windows
Setting Pytorch environment
Create a python virtual environment
$ conda create -y -n pytorch python=3.7
Useful commands
$ conda env list
# conda environments:
#
base * C:\Users\Snetsystems\Miniconda3
pytorch C:\Users\Snetsystems\Miniconda3\envs\pytorch
$ conda activate pytorch
(pytorch) $ conda list # Installed packages list on this env.
(pytorch) $ conda deactivate
$ conda env remove -n pytorch
Install jupyter on your env(pytorch)
(pytorch) $ conda install jupyter
Install pytorch for Windows
If not able to activate a certain conda env, add this instruction into .bashrc
. ~/Miniconda3/etc/profile.d/conda.sh
, multiple selections available,
Related content
Tensorflow - Keras
Tensorflow - Keras
More like this
ML/DL
More like this