Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install pytorch on Windows

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to install pytorch on Windows. I hope you will get something after reading this article. Let's discuss it together.

Install pytorch on Windows

The computer environment is windows10 python3.5 cuda8.0

You can check the installation method of each version on the official website.

The pip installation method is used here, through the following command:

1 pip3 install http://download.pytorch.org/whl/cu80/torch-0.4.0-cp35-cp35m-win_amd64.whl 2 pip3 install torchvision

Verify the installation in python after the installation is complete:

Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information. > import torch > > import torchvision > >

Possible problems:

Error from torch._C import * ImportError: DLL load failed: cannot find the specified module in import torch

The reason is that some dll files are missing, which can be resolved by the following steps:

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

two。 Extract it and put all the dll files in its Library/bin folder under the DLLs folder of the directory where python is located (for example, C:\ Users\ qin\ AppData\ Local\ Programs\ Python\ Python35\ DLLs)

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

OK, complete

After reading this article, I believe you have a certain understanding of "how to install pytorch on Windows". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report