I was wondering, if there is any way to install pytorch in windows like the way we can install tensorflow. My machine is not supporting docker.


PyTorch should work fine in WSL (CPU only).

  • $\begingroup$ installed pytorch using wsl and conda $\endgroup$
    – prisar
    May 1 '17 at 18:45

As of August 14, 2017, you can install Pytorch from peterjc123's fork as follows. Currently, python 3.5 and 3.6 are supported.

# If your main Python version is not 3.5 or 3.6
conda create -n test python=3.6 numpy pyyaml mkl

# for CPU only packages
conda install -c peterjc123 pytorch

# for Windows 10 and Windows Server 2016, CUDA 8
conda install -c peterjc123 pytorch cuda80

# for Windows 10 and Windows Server 2016, CUDA 9
conda install -c peterjc123 pytorch cuda90

# for Windows 7/8/8.1 and Windows Server 2008/2012, CUDA 8
conda install -c peterjc123 pytorch_legacy cuda80

pytorch support for windows Link

  • $\begingroup$ the link is broken. $\endgroup$
    – jdhao
    Dec 18 '17 at 2:13
  • $\begingroup$ @jdhao: updated the link $\endgroup$
    – Hossein
    Dec 18 '17 at 4:38
  • 1
    $\begingroup$ As of this time, tensorflow-gpu, for Windows, doesn't support CUDA 9. However, I've installed both CUDA 8 and CUDA 9 side-by-side. tensorflow-gpu works with CUDA 8 and pytorch works with CUDA 9. $\endgroup$
    – BSalita
    Dec 30 '17 at 10:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.