Share this article
Improve this guide
How to install PyTorch on Windows [Step-by-Step]
2 min. read
Updated onOctober 4, 2023
updated onOctober 4, 2023
Share this article
Improve this guide
Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more
Key notes
PyTorch is a popular machine learning library, easier to learn than other similar deep learning tools, according to specialists.
Before installing PyTorch, you must make sure you meet some prerequisites. Namely, to runWindows7 or greater,WindowsServer 2008 r2 or greater.
It is also recommended to have already installed the Anaconda auxiliary package forPyTorch 3.x (the only version compatible withWindows).
In short, installing PyTorch involves two steps: getting the auxiliary packages (included in theAnacondaPythonpackage manager) and then run the install command that the developer offers on their official page, depending on your settings.
How do I install PyTorch?
1. Download and install Anaconda
2. Install PyTorch
The process doesn’t take long, but if it fails, you’ll get a specific error message. Most of the time, it’s a version compatibility issue.
3. Verify the installation
You should verify if theinstallationwas successful,open a command shell , and enterpythonto launch thePythoninterpreter, then type the following:
Additionally, you cancheck if your GPU driver and CUDA are enabled, with the following command:
That’s about it! We hope you found this article useful. If you have anything that you might want to add for thisinstallationprocess, please use the comments section below.
[wl_navigator]
Vlad Turiceanu
Windows Editor
Passionate about technology,Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world.
Coming from a solid background in PC building and software development, with a complete expertise in touch-based devices, he is constantly keeping an eye out for the latest and greatest!
User forum
0 messages
Sort by:LatestOldestMost Votes
Comment*
Name*
Email*
Commenting as.Not you?
Save information for future comments
Comment
Δ
Vlad Turiceanu
Windows Editor
Coming from a solid background in PC building and software development, he’s a Windows 11 Privacy & Security expert.