preface
There are various problems encountered during the use of TensorFlow. It is helpful to write them down for review and future learning
Problem description
When TensorFlow is installed in Anaconda, the following problem is encountered:
>>> import tensorflow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\Anaconda\envs\dl\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "D:\Anaconda\envs\dl\lib\site-packages\tensorflow\python\__init__.py", line 59, in <module>
from tensorflow.core.framework.graph_pb2 import *
File "D:\Anaconda\envs\dl\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
from google.protobuf import descriptor as _descriptor
File "D:\Anaconda\envs\dl\lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified program could not be found.
The solution
Protobuf was upgraded yesterday when Object-Detection was installed, so if you call back the version of Protobuf, you should be fine.
pip install protobuf==3.6.0
Read More:
- Importerror: DLL load failed: unable to find the specified module in Python
- [Solved] wxauto error: ImportError: DLL load failed while importing win32gui: Can’t find the specified program
- Import win32API; importerror: DLL load failed: the specified program was not found
- Jupyter notebook Failed to Switch to the Virual Environment: DLL load failed python.exe could not find the entry
- import statsmodels.api as sm Error: ImportError: DLL load failed while importing _arpack: The specified program could not be found.
- How to Solve Python ImportError: cannot import name UnrewindableBodyError
- ImportError: DLL load failed while importing _multiarray_umath: The specified module could not be found.
- [Solved] D2lzh_Pytorch Import error: importerror: DLL load failed while importing
- [Solved] librosa Install Error: ImportError: DLL load failed: Could Not Found
- TensorFlow Install Error: Could not load dynamic library ‘*****.dll‘; dlerror: ********.dll not found
- [Solved] Converting IU to py using pyuic5 – O reports an error importerror: DLL load failed while importing qtcore: the specified module cannot be found.
- PyCharm: How to Solve Tensorflow_datasets Import Error
- [Solved] torchvision Error: UserWarning: Failed to load image Python extension: Could not find module
- Python Fatal error: Py_Initialize: unable to load the file system codec
- Tensorflow import Error: ImportError: libcuda.so.1: cannot open shared object file: No such file or dire
- How to Solve Error “ImportError: cannot import name imsave“
- [Solved] Numpy Load Error: DLL load failed while importing _multiarray_umath: Could not be found Module
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- [Solved] OpenCV Import Error: ImportError: numpy.core.multiarray failed to import
- Python PIP Fatal error in launcher: Unable to create process using ‘“e:\program files\programdata