Don’t panic in case of data tilt, teach you to easily obtain the slope of table tilt>>>
Error running tensorflow in docker:
Traceback (most recent call last):
File "run_classifier.py", line 24, in <module>
import modeling
File "/home/work/adapter-bert/modeling.py", line 28, in <module>
import tensorflow as tf
File "/usr/local/lib/python3.5/dist-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.5/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
find/-type f -name libcuda.so.* -exec dirname {} \; 2>/dev/null
The result is that the GPU version of docker is not used when running, which means NVIDIA docker run
Similar Posts:
- [Solved] Tensorflow:ImportError: DLL load failed: The specified module cannot be found Failed to load the native TensorFlow runtime
- Tensorflow ImportError: DLL load failed with error code -1073741795
- [Solved] Error caused by correspondence between tensorflow GPU version number and CUDA
- ModuleNotFoundError: No module named ‘_pywrap_tensorflow_internal’ [How to Solve]
- [Solved] ImportError: cannot import name pywrap_tensorflow
- [Solved] rosrun import rospy Error: ImportError: No module named yaml
- No module named ‘pkg_resources.extern’ [How to Solve]
- ImportError: No module named pytz
- Ubuntu18.04 (Python3.9) Error: ImportError: Cannot import name ‘sysconfig’ from ‘distutils’
- [Solved] Python TensorFlow Error: ‘tensorflow.compat.v2.__internal__’ has no attribute ‘tf2’