Skip to content

Pytorch upgrade 1.4 -> 1.5 broken on Windows #37209

@daniel-p-gonzalez

Description

@daniel-p-gonzalez

Issue description

Just upgraded to 1.5 on Windows 10 using conda, and pytorch fails to import with the following error:
Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 14:00:49) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import torch
Traceback (most recent call last):
File "", line 1, in
File "(user dir)\Anaconda3\envs\cenv\lib\site-packages\torch_init_.py", line 81, in
ctypes.CDLL(dll)
File "(user dir)\Anaconda3\envs\cenv\lib\ctypes_init_.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

Code example

import torch

System Info

collect_env.py fails due to import torch failure above.

  • Installed PyTorch via conda, from 1.4 with cudatoolkit=10.1, to 1.5 with cudatoolkit=10.2, with the following command:
    conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
  • Windows 10
  • Python version: 3.6.9
  • CUDA/cuDNN version: 10.2

cc @peterjc123 @nbcsm @guyang3532

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: windowsWindows support for PyTorchtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions