Skip to content

Instantly share code, notes, and snippets.

@peterjc123
Last active May 12, 2020 19:44
Show Gist options
  • Save peterjc123/6b804651288e76db7b5fabe5348e1f03 to your computer and use it in GitHub Desktop.
Save peterjc123/6b804651288e76db7b5fabe5348e1f03 to your computer and use it in GitHub Desktop.
For #4518 from torch._C import * (ImportError: DLL load failed: The specified module could not be found

It was caused by the missing of some of the dependencies: mkl, mkl-fft, intel-openmp and VC 2017 Redist.

For conda packages:

conda install mkl mkl-fft intel-openmp numpy
# If package not found, do this
conda update conda

For wheel packages:

pip install mkl mkl-fft intel-openmp numpy

And then download VC 2017 Redist and install it.

A reboot may be required for the libraries to take effect.

If this persists, it may be related to your environmental variables, such as PATH. Make sure it is not broken and at least point to the following locations:

[PythonRoot]
[PythonRoot]\Library\bin
[PythonRoot]\Scripts
[PythonRoot]\bin
%SYSTEMROOT%

P.S: #7579 ImportError: DLL load failed: The operating system cannot run %1. does not seem to be the same issue with this. It is related to Anaconda. Fix command: conda install -c defaults intel-openmp -f. If you want to help us, please provide us the logs with python -v -c 'import torch' and the result of the following code:

# pip install psutil first
import psutil, os
p = psutil.Process( os.getpid() )
for dll in p.memory_maps():
  print(dll.path)
@tommylim1
Copy link

tommylim1 commented May 31, 2018

Dear manager,
I also met this same problem.(from torch._C import * (ImportError: DLL load failed: The specified module could not be found )
But as your guide above, I did as below and then finally could run Yolov3-python version.

I did below as you said above.

pip install mkl
pip install mkl-fft
-> ,where following error were shown, but i ignored / proceed next
mkl-random 1.0.0.8 requires intel-numpy, which is not installed.
mkl-fft 1.0.0.17 requires intel-numpy, which is not installed.
pip install numpy
pip install pandas

and then installed "VC 2017 Redist" as you said.

at last, path was important.
I added "C:\Users\WIN10\AppData\Local\Programs\Python\Python36\Library\bin" in current path.
so PATH became like below.
PATH=C:\Users\WIN10\AppData\Local\Programs\Python\Python36\Scripts;C:\Users\WIN10\AppData\Local\Programs\Python\Python36;C:\Users\WIN10\AppData\Local\Programs\Python\Python36\Lib\site-packages\torch\lib;C:\Users\WIN10\AppData\Local\Programs\Python\Python36\Library\bin

and then I tested 'torch' again and no error.

FYI, My- environment was ...
python : 3.6.4
pythorch : 0.4.0
cv: 3.4.1
os : windows 10 (cpu only)
anaconda : I did not install. (because its installation size was too big)

Thanks
Best Regards,
Tommy

@mhusseinsh
Copy link

Hello,
I installed torch on windows, but it seems that there is a problem and it doesn't import

>>> import torch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\torch\__init__.py", line 78, in <module>
    from torch._C import *
ImportError: DLL load failed: The specified module could not be found.

My Specifications are:

  • PyTorch
  • How installed: pip
  • Build command you used (if compiling from source):
  • OS: Windows 10
  • PyTorch version: torch-0.4.0
  • Python version: 3.6.5
  • CUDA/cuDNN version: 9.0/7.0.5
  • GPU models and configuration: NVIDIA Quadro M2000M
  • GCC version (if compiling from source): gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 5.1.0
  • CMake version: 3.12.0-rc1

I tried your solution above:
pip install mkl mkl-fft intel-openmp numpy then an installation of VC 2017 Redist then rebooting and also, it didn't change

I checked the variables:

C:\Python36\
C:\Python36\Scripts\
C:\Python36\Lib\site-packages

So they seem okay too
By running this command python -v -c 'import torch'
this is the result

import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import '_warnings' # <class '_frozen_importlib.BuiltinImporter'>
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import '_frozen_importlib_external' # <class '_frozen_importlib.FrozenImporter'>
import '_io' # <class '_frozen_importlib.BuiltinImporter'>
import 'marshal' # <class '_frozen_importlib.BuiltinImporter'>
import 'nt' # <class '_frozen_importlib.BuiltinImporter'>
import _thread # previously loaded ('_thread')
import '_thread' # <class '_frozen_importlib.BuiltinImporter'>
import _weakref # previously loaded ('_weakref')
import '_weakref' # <class '_frozen_importlib.BuiltinImporter'>
import 'winreg' # <class '_frozen_importlib.BuiltinImporter'>
# installing zipimport hook
import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
# installed zipimport hook
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\__pycache__\__init__.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\__init__.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\encodings\\__pycache__\\__init__.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\codecs.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\codecs.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\codecs.cpython-36.pyc'
import '_codecs' # <class '_frozen_importlib.BuiltinImporter'>
import 'codecs' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D8486B9DD8>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\__pycache__\aliases.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\aliases.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\encodings\\__pycache__\\aliases.cpython-36.pyc'
import 'encodings.aliases' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A315A20>
import 'encodings' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D8486B93C8>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\__pycache__\utf_8.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\utf_8.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\encodings\\__pycache__\\utf_8.cpython-36.pyc'
import 'encodings.utf_8' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A327A90>
import '_signal' # <class '_frozen_importlib.BuiltinImporter'>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\__pycache__\latin_1.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\latin_1.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\encodings\\__pycache__\\latin_1.cpython-36.pyc'
import 'encodings.latin_1' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A327EF0>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\io.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\io.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\io.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\abc.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\abc.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\abc.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\_weakrefset.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\_weakrefset.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\_weakrefset.cpython-36.pyc'
import '_weakrefset' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A32EE10>
import 'abc' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A32E4A8>
import 'io' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A32E0F0>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\site.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\site.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\os.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\os.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\os.cpython-36.pyc'
import 'errno' # <class '_frozen_importlib.BuiltinImporter'>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\stat.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\stat.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\stat.cpython-36.pyc'
import '_stat' # <class '_frozen_importlib.BuiltinImporter'>
import 'stat' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A355A58>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\ntpath.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\ntpath.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\ntpath.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\genericpath.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\genericpath.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\genericpath.cpython-36.pyc'
import 'genericpath' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A361978>
import 'ntpath' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A35A128>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\_collections_abc.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\_collections_abc.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\_collections_abc.cpython-36.pyc'
import '_collections_abc' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A361F28>
import 'os' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A3439E8>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\_sitebuiltins.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\_sitebuiltins.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\_sitebuiltins.cpython-36.pyc'
import '_sitebuiltins' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A343E48>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\sysconfig.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\sysconfig.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\sysconfig.cpython-36.pyc'
import 'sysconfig' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A349470>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\_bootlocale.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\_bootlocale.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\_bootlocale.cpython-36.pyc'
import '_locale' # <class '_frozen_importlib.BuiltinImporter'>
import '_bootlocale' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A4DF908>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\__pycache__\cp1252.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\encodings\cp1252.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\encodings\\__pycache__\\cp1252.cpython-36.pyc'
import 'encodings.cp1252' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A4DFE10>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\types.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\types.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\types.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\functools.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\functools.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\functools.cpython-36.pyc'
import '_functools' # <class '_frozen_importlib.BuiltinImporter'>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\collections\__pycache__\__init__.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\collections\__init__.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\collections\\__pycache__\\__init__.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\operator.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\operator.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\operator.cpython-36.pyc'
import '_operator' # <class '_frozen_importlib.BuiltinImporter'>
import 'operator' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A6180F0>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\keyword.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\keyword.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\keyword.cpython-36.pyc'
import 'keyword' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A624358>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\heapq.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\heapq.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\heapq.cpython-36.pyc'
import '_heapq' # <class '_frozen_importlib.BuiltinImporter'>
import 'heapq' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A624B70>
import 'itertools' # <class '_frozen_importlib.BuiltinImporter'>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\reprlib.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\reprlib.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\reprlib.cpython-36.pyc'
import 'reprlib' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A61DA58>
import '_collections' # <class '_frozen_importlib.BuiltinImporter'>
import 'collections' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A5F9828>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\weakref.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\weakref.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\weakref.cpython-36.pyc'
import 'weakref' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A5F9C18>
import 'functools' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A4E8FD0>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\collections\__pycache__\abc.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\collections\abc.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\collections\\__pycache__\\abc.cpython-36.pyc'
import 'collections.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A4EEE10>
import 'types' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A4E82B0>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\__pycache__\__init__.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\__init__.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\importlib\\__pycache__\\__init__.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\warnings.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\warnings.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\warnings.cpython-36.pyc'
import 'warnings' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A4EED68>
import 'importlib' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A4E8550>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\__pycache__\util.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\util.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\importlib\\__pycache__\\util.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\__pycache__\abc.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\abc.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\importlib\\__pycache__\\abc.cpython-36.pyc'
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\__pycache__\machinery.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\importlib\machinery.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\importlib\\__pycache__\\machinery.cpython-36.pyc'
import 'importlib.machinery' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A659588>
import 'importlib.abc' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A664E80>
# C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\__pycache__\contextlib.cpython-36.pyc matches C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\contextlib.py
# code object from 'C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python36_64\\lib\\__pycache__\\contextlib.cpython-36.pyc'
import 'contextlib' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A659F98>
import 'importlib.util' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A6649B0>
# possible namespace for C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\mpl_toolkits
# possible namespace for C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\google
import 'site' # <_frozen_importlib_external.SourceFileLoader object at 0x000001D84A33A6A0>
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
  File "<string>", line 1
    'import
          ^
SyntaxError: EOL while scanning string literal
# clear builtins._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.__interactivehook__
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup[2] removing builtins
# cleanup[2] removing sys
# cleanup[2] removing _frozen_importlib
# cleanup[2] removing _imp
# cleanup[2] removing _warnings
# cleanup[2] removing _thread
# cleanup[2] removing _weakref
# cleanup[2] removing _frozen_importlib_external
# cleanup[2] removing _io
# cleanup[2] removing marshal
# cleanup[2] removing nt
# cleanup[2] removing winreg
# cleanup[2] removing zipimport
# cleanup[2] removing encodings
# destroy encodings
# cleanup[2] removing codecs
# cleanup[2] removing _codecs
# cleanup[2] removing encodings.aliases
# cleanup[2] removing encodings.utf_8
# cleanup[2] removing _signal
# cleanup[2] removing __main__
# destroy __main__
# cleanup[2] removing encodings.latin_1
# cleanup[2] removing io
# destroy io
# cleanup[2] removing abc
# cleanup[2] removing _weakrefset
# destroy _weakrefset
# cleanup[2] removing site
# destroy site
# cleanup[2] removing os
# cleanup[2] removing errno
# cleanup[2] removing stat
# cleanup[2] removing _stat
# cleanup[2] removing ntpath
# cleanup[2] removing genericpath
# cleanup[2] removing os.path
# cleanup[2] removing _collections_abc
# cleanup[2] removing _sitebuiltins
# cleanup[2] removing sysconfig
# destroy sysconfig
# cleanup[2] removing _bootlocale
# destroy _bootlocale
# cleanup[2] removing _locale
# cleanup[2] removing encodings.cp1252
# cleanup[2] removing types
# cleanup[2] removing functools
# cleanup[2] removing _functools
# cleanup[2] removing collections
# cleanup[2] removing operator
# destroy operator
# cleanup[2] removing _operator
# cleanup[2] removing keyword
# destroy keyword
# cleanup[2] removing heapq
# cleanup[2] removing _heapq
# cleanup[2] removing itertools
# cleanup[2] removing reprlib
# destroy reprlib
# cleanup[2] removing _collections
# cleanup[2] removing weakref
# destroy weakref
# cleanup[2] removing collections.abc
# cleanup[2] removing importlib
# destroy importlib
# cleanup[2] removing importlib._bootstrap
# cleanup[2] removing importlib._bootstrap_external
# cleanup[2] removing warnings
# cleanup[2] removing importlib.util
# cleanup[2] removing importlib.abc
# cleanup[2] removing importlib.machinery
# cleanup[2] removing contextlib
# destroy contextlib
# cleanup[2] removing mpl_toolkits
# destroy mpl_toolkits
# cleanup[2] removing google
# destroy google
# destroy zipimport
# destroy _signal
# destroy _sitebuiltins
# destroy errno
# destroy ntpath
# destroy _stat
# destroy genericpath
# destroy stat
# destroy os
# destroy _locale
# destroy _functools
# destroy heapq
# destroy collections.abc
# destroy _operator
# destroy _heapq
# destroy _collections
# destroy collections
# destroy itertools
# destroy importlib.util
# destroy importlib.abc
# destroy functools
# destroy types
# destroy warnings
# destroy importlib.machinery
# destroy abc
# destroy _collections_abc
# cleanup[3] wiping _frozen_importlib
# destroy _frozen_importlib_external
# cleanup[3] wiping _imp
# cleanup[3] wiping _warnings
# cleanup[3] wiping _thread
# cleanup[3] wiping _weakref
# cleanup[3] wiping _io
# cleanup[3] wiping marshal
# cleanup[3] wiping nt
# cleanup[3] wiping winreg
# cleanup[3] wiping codecs
# cleanup[3] wiping _codecs
# cleanup[3] wiping encodings.aliases
# cleanup[3] wiping encodings.utf_8
# cleanup[3] wiping encodings.latin_1
# cleanup[3] wiping encodings.cp1252
# cleanup[3] wiping importlib._bootstrap
# cleanup[3] wiping sys
# cleanup[3] wiping builtins

and for running this test code

import psutil, os
p = psutil.Process( os.getpid() )
for dll in p.memory_maps():
  print(dll.path)

This is the result

C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\DLLs\_bz2.pyd
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python36.dll
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\DLLs\select.pyd
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\DLLs\_socket.pyd
C:\Program Files\Immidio\Flex Profiles\FlexHook64.dll
C:\Windows\System32\locale.nls
C:\Windows\Globalization\Sorting\SortDefault.nls
C:\Windows\System32\en-US\KernelBase.dll.mui
C:\Windows\SysWOW64\en-US\kernel32.dll.mui
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\DLLs\_lzma.pyd
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\Lib\site-packages\psutil\_psutil_windows.cp36-win_amd64.pyd
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\vcruntime140.dll
C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python3.dll
C:\Windows\System32\wtsapi32.dll
C:\Windows\System32\ntmarta.dll
C:\Windows\System32\rsaenh.dll
C:\Windows\System32\IPHLPAPI.DLL
C:\Windows\System32\cryptbase.dll
C:\Windows\System32\cryptsp.dll
C:\Windows\System32\bcrypt.dll
C:\Windows\System32\version.dll
C:\Windows\System32\privman64.dll
C:\Windows\System32\userenv.dll
C:\Windows\System32\kernel.appcore.dll
C:\Windows\System32\profapi.dll
C:\Windows\System32\powrprof.dll
C:\Windows\System32\cfgmgr32.dll
C:\Windows\System32\windows.storage.dll
C:\Windows\System32\msvcp_win.dll
C:\Windows\System32\win32u.dll
C:\Windows\System32\KernelBase.dll
C:\Windows\System32\ucrtbase.dll
C:\Windows\System32\bcryptprimitives.dll
C:\Windows\System32\gdi32full.dll
C:\Windows\System32\rpcrt4.dll
C:\Windows\System32\shlwapi.dll
C:\Windows\System32\SHCore.dll
C:\Windows\System32\user32.dll
C:\Windows\System32\kernel32.dll
C:\Windows\System32\msvcrt.dll
C:\Windows\System32\psapi.dll
C:\Windows\System32\sechost.dll
C:\Windows\System32\ws2_32.dll
C:\Windows\System32\shell32.dll
C:\Windows\System32\advapi32.dll
C:\Windows\System32\gdi32.dll
C:\Windows\System32\combase.dll
C:\Windows\System32\imm32.dll
C:\Windows\System32\ntdll.dll

I hope this can help by any means in finding a solution for my problem, as it is really urgent for me, that I need to get torch running
Thanks in advance

@ZCzhan
Copy link

ZCzhan commented Jul 19, 2018

I followed the advices as above - installed pytorch using pip3 (also tried conda installs), updated PATH. But I've the following errors:
E:>python
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 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 "E:\Python\Python36\lib\site-packages\torch_init_.py", line 78, in
from torch._C import *
ImportError: DLL load failed: Access is denied.

the environment is windows 8.1 CPU. used lucasg dependencies.ext on _C.cp36-win_amd64.pyd and all dlls are found. Also tried ctypes.WinDLL to load some dlls ok.

Any ideas why Access is denied? By the way, I logged on with admin right.

Thanks,
ZC

I've found out why access is denied. It's blocked by McAfee VirusScan access protection rules defined by my company.

@alexgraham13
Copy link

I have installed on Windows 8 using conda install -c peterjc123 pytorch did not work, then uninstalled and reinstalled using onda install -c peterjc123 pytorch cuda80.
Went into python using Anaconda prompt and typed import torch, returned this message:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\username\Anaconda3\envs\snakes\lib\site-packages\torch_init_.py", line 76, in
from torch._C import*
ImportError: DLL load failed: The specified module could not be found.

Have also previously tried installing via the pip route, a similar error message was returned. Any help much appreciated!

@peterjc123
Copy link
Author

Guys, don't ask here. Ask in pytorch/pytorch. I cannot get notifications for this thread.

@Abeni18
Copy link

Abeni18 commented Aug 29, 2018

After a long search i found the solution
The problem is that if the GPU is old the pytorch version before 0.4.0 doesn’t work, so you have to install the newest pytorch,
run this - conda install -c pytorch pytorch
After you install the newest pytorch you will face torch._C import * DLL load failed problem
to fix that run the ff code
set PYTORCH_BUILD_VERSION=0.4.1

@Abeni18
Copy link

Abeni18 commented Aug 29, 2018

After a long search i found the solution
The problem is that if the GPU is old the pytorch version before 0.4.0 doesn’t work, so you have to install the newest pytorch,
run this - conda install -c pytorch pytorch
After you install the newest pytorch you will face torch._C import * DLL load failed problem
to fix that run the ff code
set PYTORCH_BUILD_VERSION=0.4.1

conda install -c pytorch pytorch
set PYTORCH_BUILD_VERSION=0.4.1

@hemangjoshi37a
Copy link

@Abeni18 are you using CPU or GPU??
It is not working for me.
Any solution ??

@hemangjoshi37a
Copy link

Code :

import psutil, os
p = psutil.Process( os.getpid() )
for dll in p.memory_maps():
  print(dll.path)

Output

runfile('C:/Users/hj/autokeras_test.py', wdir='C:/Users/hj') C:\Windows\System32\locale.nls C:\Windows\Globalization\Sorting\SortDefault.nls C:\Windows\System32\en-US\KernelBase.dll.mui C:\Windows\System32\en-US\kernel32.dll.mui C:\Users\hj\Anaconda3\pythonw.exe C:\Users\hj\Anaconda3\python36.dll C:\Users\hj\Anaconda3\DLLs\_sqlite3.pyd C:\Users\hj\Anaconda3\DLLs\_decimal.pyd C:\Users\hj\Anaconda3\pkgs\pywin32-223-py36hfa6e2cd_0\Library\bin\pythoncom36.dll C:\Users\hj\Anaconda3\DLLs\_multiprocessing.pyd C:\Users\hj\Anaconda3\DLLs\_overlapped.pyd C:\Users\hj\Anaconda3\DLLs\_elementtree.pyd C:\Users\hj\Anaconda3\pkgs\pywin32-223-py36hfa6e2cd_0\Lib\site-packages\win32\win32api.pyd C:\Users\hj\Anaconda3\pkgs\python-3.6.6-he025d50_0\DLLs\unicodedata.pyd C:\Users\hj\Anaconda3\DLLs\_bz2.pyd C:\Users\hj\Anaconda3\DLLs\_ctypes.pyd C:\Users\hj\Anaconda3\DLLs\select.pyd C:\Users\hj\Anaconda3\Library\bin\pywintypes36.dll C:\Users\hj\Anaconda3\DLLs\_socket.pyd C:\Users\hj\Anaconda3\Lib\site-packages\win32\_win32sysloader.pyd C:\Windows\System32\kernel32.dll C:\Windows\System32\user32.dll C:\Windows\System32\ntdll.dll C:\Windows\System32\psapi.dll C:\Users\hj\Anaconda3\Library\bin\libiomp5md.dll C:\Users\hj\Anaconda3\Library\bin\mklml.dll C:\Users\hj\Anaconda3\pkgs\.trash\c77b438f-8b95-4c6b-b3f4-c3f5e071ac94 C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5l.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5o.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5i.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5g.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5f.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5ds.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5d.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5p.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5t.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Library\bin\hdf5.dll C:\Users\hj\Anaconda3\Lib\site-packages\scipy\ndimage\_ni_label.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\ndimage\_nd_image.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\DLLs\sqlite3.dll C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5ac.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5a.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\pkgs\.trash\4f7550e6-c388-48ce-a996-b5c3afee535a C:\Users\hj\Anaconda3\Library\bin\libexslt.dll C:\Users\hj\Anaconda3\pkgs\.trash\faa58ceb-3deb-4216-b6cc-b71765189641 C:\Users\hj\Anaconda3\pkgs\.trash\e65fd056-165d-4c7f-9362-48a0e695b680 C:\Users\hj\Anaconda3\pkgs\.trash\760f1e71-d492-4486-916a-d253ed631cd8 C:\Users\hj\Anaconda3\Library\bin\libxslt.dll C:\Users\hj\Anaconda3\pkgs\.trash\d3d5372e-94f1-4ee6-8cbd-56247851f44a C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5s.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Library\bin\hdf5_hl.dll C:\Users\hj\Anaconda3\Lib\site-packages\h5py\defs.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\_objects.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5r.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\pkgs\.trash\3b4940da-01cf-4b18-bfda-5bc04c2fe2ca C:\Users\hj\Anaconda3\Lib\site-packages\scipy\spatial\_hausdorff.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\spatial\_distance_wrap.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\spatial\_voronoi.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\spatial\qhull.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\spatial\ckdtree.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\interpolate\interpnd.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\interpolate\_ppoly.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\interpolate\_bspl.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\interpolate\dfitpack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\interpolate\_fitpack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_nnls.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_lsq\givens_elimination.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_group_columns.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_minpack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\linalg\eigen\arpack\_arpack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\csgraph\_reordering.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\csgraph\_min_spanning_tree.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\csgraph\_traversal.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\csgraph\_tools.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\csgraph\_shortest_path.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\_csparsetools.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\_sparsetools.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\integrate\lsoda.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\integrate\_dop.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\integrate\vode.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\integrate\_quadpack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\integrate\_odepack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\special\_ellip_harm_2.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\special\_comb.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\special\specfun.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\special\_ufuncs_cxx.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Library\bin\libmmd.dll C:\Users\hj\Anaconda3\Library\bin\libifcoremd.dll C:\Users\hj\Anaconda3\Lib\site-packages\scipy\special\_ufuncs.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\linalg\cython_lapack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\linalg\cython_blas.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\linalg\_decomp_update.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\linalg\_solve_toeplitz.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\linalg\_flinalg.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\linalg\_flapack.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Library\bin\mkl_rt.dll C:\Users\hj\Anaconda3\Lib\site-packages\scipy\linalg\_fblas.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\_lib\_ccallback_c.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\testing.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\util\_move.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\io\msgpack\_unpacker.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\io\msgpack\_packer.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\writers.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\json.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\parsers.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_slsqp.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\reshape.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\groupby.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\reduction.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\skiplist.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\window.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_cobyla.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\pkgs\.trash\5ad030ba-a84d-4807-a3bf-b2133b906c80 C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_zeros.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\moduleTNC.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\_lbfgsb.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\optimize\minpack2.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\linalg\dsolve\_superlu.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\scipy\sparse\linalg\isolve\_iterative.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\sparse.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\internals.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\indexing.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\interval.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\ops.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\join.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\offsets.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\resolution.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\frequencies.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\period.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\index.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\bottleneck\move.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\bottleneck\nonreduce_axis.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\bottleneck\reduce.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\hashing.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\properties.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\algos.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\lib.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\missing.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\hashtable.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\fields.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\timestamps.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\strptime.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\ccalendar.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\parsing.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\timezones.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\timedeltas.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\nattype.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\conversion.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\pkgs\.trash\faabaffb-3915-4520-ad39-5bff99d60079 C:\Users\hj\Anaconda3\pkgs\.trash\9787515b-b6cc-49be-bb68-cff68f96ac0a C:\Users\hj\Anaconda3\pkgs\.trash\cbb0530a-8a3f-4e7e-adaa-10503941dd63 C:\Users\hj\Anaconda3\pkgs\.trash\416772ec-231f-4b55-96e8-aed3fc7959b9 C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\_device.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\_version.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\_poll.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\utils.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\socket.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\context.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\message.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Library\bin\libzmq-mt-4_2_5.dll C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\error.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\zmq\backend\cython\constants.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\bottleneck\nonreduce.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslib.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\pkgs\.trash\8dc71247-cacf-41be-80d5-8c948f62836e C:\Users\hj\Anaconda3\pkgs\.trash\7167f57d-f034-4cd6-8ff6-e3d40fe4a0c6 C:\Users\hj\Anaconda3\pkgs\.trash\4210679c-73fe-41ba-89c4-bb3302cf98a8 C:\Users\hj\Anaconda3\pkgs\.trash\34cbedf6-069b-4092-96a5-9cc073d8a652 C:\Users\hj\Anaconda3\pkgs\openssl-1.0.2p-hfa6e2cd_0\Library\bin\libeay32.dll C:\Users\hj\Anaconda3\DLLs\_ssl.pyd C:\Users\hj\Anaconda3\DLLs\_hashlib.pyd C:\Users\hj\Anaconda3\Lib\site-packages\torch\_nvrtc.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\pkgs\.trash\2cbcfc16-5452-444d-b6a6-bd718dd85e8f C:\Users\hj\Anaconda3\pkgs\.trash\4a5c9caa-bf3e-422d-b612-9b75ed4a72aa C:\Users\hj\Anaconda3\Lib\site-packages\kiwisolver.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\pkgs\.trash\964b13f8-19b1-49d5-a57d-60684a9d7449 C:\Users\hj\Anaconda3\pkgs\.trash\ad0b6574-5754-4273-9b06-05c6f444c909 C:\Users\hj\Anaconda3\pkgs\.trash\3d047e0c-3bba-4140-be24-94b2966355bc C:\Users\hj\Anaconda3\pkgs\.trash\b2e302e1-7afc-457e-81e4-706b85e392ef C:\Users\hj\Anaconda3\pkgs\.trash\75888ce3-b976-4947-8314-ad747e0fdf88 C:\Users\hj\Anaconda3\Lib\site-packages\pandas\_libs\tslibs\np_datetime.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\DLLs\pyexpat.pyd C:\Users\hj\Anaconda3\pkgs\openssl-1.0.2p-hfa6e2cd_0\Library\bin\ssleay32.dll C:\Users\hj\Anaconda3\pkgs\cryptography-2.3.1-py36h74b6da3_0\Lib\site-packages\cryptography\hazmat\bindings\_openssl.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\ucrtbase.dll C:\Users\hj\Anaconda3\pkgs\cffi-1.11.5-py36hfa6e2cd_1\Lib\site-packages\_cffi_backend.cp36-win_amd64.pyd C:\Windows\System32\msvcp140.dll C:\Users\hj\Anaconda3\DLLs\_asyncio.pyd C:\Users\hj\Anaconda3\Lib\site-packages\_yaml.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Library\bin\yaml.dll C:\Users\hj\Anaconda3\DLLs\_lzma.pyd C:\Users\hj\Anaconda3\Lib\site-packages\tornado\speedups.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Library\bin\libpng16.dll C:\Users\hj\Anaconda3\Library\bin\zlib.dll C:\Windows\System32\api-ms-win-crt-utility-l1-1-0.dll C:\Users\hj\Anaconda3\pkgs\cryptography-2.3.1-py36h74b6da3_0\Lib\site-packages\cryptography\hazmat\bindings\_constant_time.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\_conv.cp36-win_amd64.pyd C:\Program Files\AVAST Software\Avast\x64\aswhooka.dll C:\Users\hj\Anaconda3\api-ms-win-crt-filesystem-l1-1-0.dll C:\Users\hj\Anaconda3\python3.dll C:\Users\hj\Anaconda3\api-ms-win-crt-process-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-conio-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-time-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-environment-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-math-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-locale-l1-1-0.dll C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5fd.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\h5py\_errors.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\api-ms-win-crt-stdio-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-convert-l1-1-0.dll C:\Users\hj\Anaconda3\Lib\site-packages\h5py\_proxy.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\api-ms-win-crt-string-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-heap-l1-1-0.dll C:\Users\hj\Anaconda3\Lib\site-packages\h5py\h5z.cp36-win_amd64.pyd C:\Windows\System32\wsock32.dll C:\Users\hj\Anaconda3\api-ms-win-core-processthreads-l1-1-1.dll C:\Users\hj\Anaconda3\api-ms-win-core-file-l1-2-0.dll C:\Users\hj\Anaconda3\api-ms-win-core-localization-l1-2-0.dll C:\Users\hj\Anaconda3\api-ms-win-core-synch-l1-2-0.dll C:\Users\hj\Anaconda3\vcruntime140.dll C:\Users\hj\Anaconda3\api-ms-win-core-file-l2-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-crt-runtime-l1-1-0.dll C:\Users\hj\Anaconda3\api-ms-win-core-timezone-l1-1-0.dll C:\Users\hj\Anaconda3\Lib\site-packages\h5py\utils.cp36-win_amd64.pyd C:\Users\hj\Anaconda3\Lib\site-packages\psutil\_psutil_windows.cp36-win_amd64.pyd C:\Windows\System32\msvcr120.dll C:\Windows\System32\dhcpcsvc6.dll C:\Windows\System32\dhcpcsvc.dll C:\Windows\System32\winnsi.dll C:\Windows\System32\IPHLPAPI.DLL C:\Windows\System32\uxtheme.dll C:\Windows\System32\powrprof.dll C:\Windows\System32\wtsapi32.dll C:\Windows\System32\version.dll C:\Windows\System32\WSHTCPIP.DLL C:\Windows\System32\rsaenh.dll C:\Windows\System32\mswsock.dll C:\Windows\System32\cryptsp.dll C:\Windows\System32\wship6.dll C:\Windows\System32\secur32.dll C:\Windows\System32\sspicli.dll C:\Windows\System32\apphelp.dll C:\Windows\System32\cryptbase.dll C:\Windows\System32\msasn1.dll C:\Windows\System32\cfgmgr32.dll C:\Windows\System32\devobj.dll C:\Windows\System32\crypt32.dll C:\Windows\System32\KernelBase.dll C:\Windows\System32\imm32.dll C:\Windows\System32\ws2_32.dll C:\Windows\System32\msctf.dll C:\Windows\System32\ole32.dll C:\Windows\System32\rpcrt4.dll C:\Windows\System32\sechost.dll C:\Windows\System32\oleaut32.dll C:\Windows\System32\gdi32.dll C:\Windows\System32\wininet.dll C:\Windows\System32\setupapi.dll C:\Windows\System32\lpk.dll C:\Windows\System32\shell32.dll C:\Windows\System32\iertutil.dll C:\Windows\System32\advapi32.dll C:\Windows\System32\usp10.dll C:\Windows\System32\imagehlp.dll C:\Windows\System32\msvcrt.dll C:\Windows\System32\nsi.dll C:\Windows\System32\urlmon.dll C:\Windows\System32\shlwapi.dll C:\Windows\System32\apisetschema.dll

Error :

Related to :
ImportError: DLL load failed: The operating system cannot run %1.

Please help me

@nitneuqr
Copy link

nitneuqr commented Oct 26, 2018

These instructions worked for me; it seemed that the environment variables were the issue for me. Thanks a lot!

@akhibh
Copy link

akhibh commented Nov 2, 2018

(tensorflow1) C:\tensorflow1\models\research\object_detection>jupyter notebook object_detection_tutorial.ipynb
Traceback (most recent call last):
File "c:\programdata\anaconda3\envs\tensorflow1\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "c:\programdata\anaconda3\envs\tensorflow1\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\envs\tensorflow1\Scripts\jupyter-notebook.EXE_main
.py", line 5, in
File "c:\programdata\anaconda3\envs\tensorflow1\lib\site-packages\notebook\notebookapp.py", line 46, in
from zmq.eventloop import ioloop
File "c:\programdata\anaconda3\envs\tensorflow1\lib\site-packages\zmq_init
.py", line 47, in
from zmq import backend
File "c:\programdata\anaconda3\envs\tensorflow1\lib\site-packages\zmq\backend_init_.py", line 40, in
reraise(*exc_info)
File "c:\programdata\anaconda3\envs\tensorflow1\lib\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "c:\programdata\anaconda3\envs\tensorflow1\lib\site-packages\zmq\backend_init_.py", line 27, in
ns = select_backend(first)
File "c:\programdata\anaconda3\envs\tensorflow1\lib\site-packages\zmq\backend\select.py", line 27, in select_backend
mod = import(name, fromlist=public_api)
File "c:\programdata\anaconda3\envs\tensorflow1\lib\site-packages\zmq\backend\cython_init
.py", line 6, in
from . import (constants, error, message, context,
ImportError: DLL load failed: The specified module could not be found.
since i am using windows 10 ..pls help with reliable answer

@sykrn
Copy link

sykrn commented Feb 13, 2019

@peterjc123 I found that this error, from torch._C import * (ImportError: DLL load failed: The specified module could not be found, rises when I installed Pytorch outside the base environment (using anaconda). But, when I installed Pytorch in the base/main environment, all are okay.
I guess that because only the base environment is included in PATH variable. i.e.

[PythonRoot]
[PythonRoot]\Library\bin
[PythonRoot]\Scripts
[PythonRoot]\bin

where PythonRoot=Anaconda3, (main anaconda directory).

I don't know what's wrong with anaconda.

@harlecin
Copy link

harlecin commented Feb 17, 2019

@sykrn: It seems like the problem is related to the python version that gets installed in your conda environment. I belief base ships with 3.7.1 and this version works with pytorch.

See this issue here and this issue here for more information. The pytorch team is currently implementing a fix from what I read:)

@ShivamPR21
Copy link

ShivamPR21 commented Feb 18, 2019

I have tackled this by creating a full conda environment with anaconda installed in it.
Pl. have a look on my answer here at stackoverflow: https://stackoverflow.com/a/54742569/9071644

@syedmeesamali
Copy link

I have same issue and below are my specs.
System = Windows 10
Type = X64 and CPU only
Python Ver = 3.6
Installation = pip

I have already installed the mkl and mkl-fft intel-openmp and numpy using pip

@ShivamPR21
Copy link

I think you should try conda distro the steps are provided here:
1:) conda create -n pyTorchCPU python=3.6 urllib3
2:) conda activate pyTorchCPU
3:) conda activate numpy matplotlib mkl mkl_fft
4:) conda install pytorch-cpu torchvision-cpu -c pytorch
5:) python -c "import numpy; import torch"

@ShivamPR21
Copy link

This procedure worked for me:
1:) conda create -n pyTorch python=3.6 urllib3
2:) conda activate pyTorch
3:) pip install numpy mkl mkl-fft
4:) pip install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp36-cp36m-win_amd64.whl
5:) pip install torchvision
6:) python -c "import numpy; import torch; print(torch.version)"

@sykrn
Copy link

sykrn commented Feb 27, 2019

@sykrn: It seems like the problem is related to the python version that gets installed in your conda environment. I belief base ships with 3.7.1 and this version works with pytorch.

See this issue here and this issue here for more information. The pytorch team is currently implementing a fix from what I read:)

Okay, that's good news, thanks @harlecin

@Vini-S
Copy link

Vini-S commented Apr 12, 2019


ImportError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import version

~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper

~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23 try:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25 finally:

~\Anaconda3\lib\imp.py in load_module(name, file, filename, details)
241 else:
--> 242 return load_dynamic(name, filename, file)
243 elif type_ == PKG_DIRECTORY:

~\Anaconda3\lib\imp.py in load_dynamic(name, path, file)
341 name=name, loader=loader, origin=path)
--> 342 return _load(spec)
343

ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last)
in
1 import pandas as pd
----> 2 from keras.models import Sequential
3 from keras.layers import Dense
4 import numpy as np
5 from sklearn.model_selection import train_test_split

~\Anaconda3\lib\site-packages\keras_init_.py in
1 from future import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications

~\Anaconda3\lib\site-packages\keras\utils_init_.py in
4 from . import data_utils
5 from . import io_utils
----> 6 from . import conv_utils
7
8 # Globally-importable utils.

~\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in
7 from six.moves import range
8 import numpy as np
----> 9 from .. import backend as K
10
11

~\Anaconda3\lib\site-packages\keras\backend_init_.py in
87 elif _BACKEND == 'tensorflow':
88 sys.stderr.write('Using TensorFlow backend.\n')
---> 89 from .tensorflow_backend import *
90 else:
91 # Try and load external backend.

~\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in
3 from future import print_function
4
----> 5 import tensorflow as tf
6 from tensorflow.python.framework import ops as tf_ops
7 from tensorflow.python.training import moving_averages

~\Anaconda3\lib\site-packages\tensorflow_init_.py in
22
23 # pylint: disable=g-bad-import-order
---> 24 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
25
26 from tensorflow._api.v1 import app

~\Anaconda3\lib\site-packages\tensorflow\python_init_.py in
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers

~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in
72 for some common reasons and solutions. Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74 raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (most recent call last):
File "C:\Users\admin\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\admin\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\admin\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\admin\Anaconda3\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\admin\Anaconda3\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

dataframe = pd.read_csv("dia

@Vini-S
Copy link

Vini-S commented Apr 12, 2019


ImportError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import version

~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper

~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23 try:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25 finally:

~\Anaconda3\lib\imp.py in load_module(name, file, filename, details)
241 else:
--> 242 return load_dynamic(name, filename, file)
243 elif type_ == PKG_DIRECTORY:

~\Anaconda3\lib\imp.py in load_dynamic(name, path, file)
341 name=name, loader=loader, origin=path)
--> 342 return _load(spec)
343

ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last)
in
1 import pandas as pd
----> 2 from keras.models import Sequential
3 from keras.layers import Dense
4 import numpy as np
5 from sklearn.model_selection import train_test_split

~\Anaconda3\lib\site-packages\keras_init_.py in
1 from future import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications

~\Anaconda3\lib\site-packages\keras\utils_init_.py in
4 from . import data_utils
5 from . import io_utils
----> 6 from . import conv_utils
7
8 # Globally-importable utils.

~\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in
7 from six.moves import range
8 import numpy as np
----> 9 from .. import backend as K
10
11

~\Anaconda3\lib\site-packages\keras\backend_init_.py in
87 elif _BACKEND == 'tensorflow':
88 sys.stderr.write('Using TensorFlow backend.\n')
---> 89 from .tensorflow_backend import *
90 else:
91 # Try and load external backend.

~\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in
3 from future import print_function
4
----> 5 import tensorflow as tf
6 from tensorflow.python.framework import ops as tf_ops
7 from tensorflow.python.training import moving_averages

~\Anaconda3\lib\site-packages\tensorflow_init_.py in
22
23 # pylint: disable=g-bad-import-order
---> 24 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
25
26 from tensorflow._api.v1 import app

~\Anaconda3\lib\site-packages\tensorflow\python_init_.py in
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers

~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in
72 for some common reasons and solutions. Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74 raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long

ImportError: Traceback (most recent call last):
File "C:\Users\admin\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\admin\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\admin\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\admin\Anaconda3\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\admin\Anaconda3\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

dataframe = pd.read_csv("dia

@Vini-S
Copy link

Vini-S commented Apr 12, 2019

plz help me to solve this error

@Vini-S
Copy link

Vini-S commented Apr 12, 2019

plz help me to solve this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment