tensorflow: Tensorflow (cpu) missing DLL on import
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 64bit
- TensorFlow installed from (source or binary): pip install tensorflow; pip install --upgrade tensorflow; pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.11.0-cp36-cp36m-win_amd64.whl etc.)
- TensorFlow version: Tried multiple from 1.4.0 - 1.11.0
- Python version: Python 3.6
- Installed using virtualenv? pip? conda?: Yes to all 3
- CUDA/cuDNN version: As far as I know I don’t need it for the CPU Version.
- GPU model and memory: NA
Describe the problem
Can’t import Tensorflow, missing DLL:
Traceback (most recent call last): File "<input>", line 1, in <module> File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import module = self._system_import(name, *args, **kwargs) File "venv\lib\site-packages\tensorflow\__init__.py", line 22, in <module> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import module = self._system_import(name, *args, **kwargs) File "venv\lib\site-packages\tensorflow\python\__init__.py", line 52, in <module> from tensorflow.core.framework.graph_pb2 import * File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import module = self._system_import(name, *args, **kwargs) File "venv\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module> from google.protobuf import descriptor as _descriptor File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import module = self._system_import(name, *args, **kwargs) File "venv\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module> from google.protobuf.pyext import _message File "C:\Program Files\JetBrains\PyCharm Community Edition 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import module = self._system_import(name, *args, **kwargs) ImportError: DLL load failed: The specified procedure could not be found.
Provide the exact sequence of commands / steps that you executed before running into the problem
- Installed vc_redist64.exe
- Open Python
import tensorflow
Any other info / logs
- I already reinstalled Python completly
- reinstalled vc_redist multiple times
- and tried everything I found over google. Not sure if I am messing something up.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (6 by maintainers)
Thanks for confirming. It looks like this is a bug in the protobuf package, which is probably related to https://github.com/protocolbuffers/protobuf/issues/5046. According to a comment on that thread, upgrading Python from 3.6.0 to 3.6.1 may solve the problem.