Install Pytorch on Windows

Source: Internet
Author: User

Computer environment: WINDOWS10 python3.5 cuda8.0

You can find out how to install each version on the website.

Here's how to install the PIP by using the following command:

1 pip3 Install http://2 pip3 Install Torchvision

Verify the installation in Python after the installation is complete:

Python3.5.2(v3.5.2: 4DEF2A2901A5, June -  ., A: -: -) [MSC v.1900  -bit (AMD64)] on Win32type" Help","Copyright","credits"Or"License"  forMore information.>>>Import Torch>>>Import Torchvision>>>

Problems that may occur:

When import torch occurs from torch._c import * Importerror:dll load failed: error not found for the specified module

The reason is that some DLL files are missing and are resolved in the following steps:

1. Download win-64/intel-openmp-2018.0.0-8.tar.bz2

2. Unzip it and place all DLL files in its Library/bin folder under the DLLs folder in the directory where Python is located (for example C:\Users\qin\AppData\Local\Programs\Python\Python35\ DLLs)

3. Add the above path into the environment variable path.

OK, Finish.

Install Pytorch on Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.