Repository: pytorch
Issue:  from torch._C import * (ImportError: DLL load failed)
Labels: triaged

## 🐛 Bug
Bad import error handling
By rising this issue my target not to get it to work "somehow"
But to improve the error handling giving to the people an opportunity to understand what went wrong.
I seen A LOT of such issues through the internet where solution was to reinstall totally different components to make it work and even downgrade the product which is totally NOT acceptable in today's world.
Other suggestion is to change packaging system which is not relate to the issue but worked for some people.
For some people adding some Cuda libs into some unpredictable place works

## To Reproduce

Steps to reproduce the behavior:

1. pip install torch===1.4.0 torchvision===0.5.0 -f https://download.pytorch.org/whl/torch_stable.html
2. python
3. help()
4. modules torch

Here is a list of modules whose name or summary contains 'torch'.
If there are any, enter a module name to get more help.

<generator object walk_packages at 0x000002AA581F4A48>
<generator object walk_packages at 0x000002AA581F4AC8>
torch - The torch package contains data structures for multi-dimensional
<generator object walk_packages at 0x000002AA581F4AC8>
torchfile - Mostly direct port of the Lua and C serialization implementation to
torchvision
<generator object walk_packages at 0x000002AA581F4AC8>

5. quit
6. >>> import torch
<generator object walk_packages at 0x000002AA54151CC8>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\__init__.py", line 86, in <module>
    from torch._C import *
ImportError: DLL load failed: Module not found.
7. add print(_dl_flags.environ['PATH']) into __init__
show me many paths including 
C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\lib;
this is the place where torch.dll is 
So it definitely sees the torch but which DLL it wants to load? 
running python with -v key did not help. 

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior
Expected: 
-(min ) error contains what file it was looking for. So one should be able to find this in their system and fix the path OR not to find it in the system and add it into it.
 -(max) user friendly and at the same time useful error description

<!-- A clear and concise description of what you expected to happen. -->

## Environment


```

 C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\lib;C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0\Library\bin;C:\Program Files\NVIDIA Corporation\NvToolsExt\bin\x64;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\libnvvp;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;d:\php\;C:\Program Files\nodejs\;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\dotnet\;C:\Program Files\TortoiseGit\bin;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.5.0\;c:\users\asus\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin;C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\lib\x64;C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\lib;C:\Users\Asus\AppData\Roaming\npm;C:\Users\Asus\AppData\Local\Microsoft\WindowsApps;C:\Users\Asus\AppData\Roaming\Composer\vendor\bin;C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts;c:\users\asus\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin;C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\lib;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\lib\x64;C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\torch\lib;;C:\Users\Asus\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\numpy\.libs
<generator object walk_packages at 0x000002517FB64648>
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: Microsoft Windows 10 Home Single Language
GCC version: Could not collect
CMake version: Could not collect

Python version: 3.7
Is CUDA available: N/A
CUDA runtime version: 10.2.89
GPU models and configuration: GPU 0: GeForce GTX 850M
Nvidia driver version: 441.22
cuDNN version: Could not collect

Versions of relevant libraries:
[pip3] numpy==1.18.1
[pip3] torch==1.4.0
[pip3] torchfile==0.1.0
[pip3] torchvision==0.5.0
[conda] Could not collect
## Additional context

<!-- Add any other context about the problem here. -->


Thanks!