sudo nvidia-docker run -p 8888:8888 –name tf1.11_py3 -it -v /home/wang/:/home/wang 0641cda31e80
How to Fix this issue:
>>> import tensorflow
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py”, line 22, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py”, line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py”, line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py”, line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py”, line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py”, line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
Tensorflow import error ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
When starting docker, the original use was.
sudo docker run -p 8888:8888 –name tf1.11_py2 -it -v /home//wang/:/home//wang 0641cda31e80
switch to
sudo nvidia-docker run -p 8888:8888 –name tf1.11_py3 -it -v /home/wang/:/home/wang 0641cda31e80
How to Fix this issue:
>>> import tensorflow
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py”, line 22, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py”, line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py”, line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py”, line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py”, line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File “/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py”, line 24, in swig_import_helper
_mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description)
Tensorflow import error ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
When starting docker, the original use was.
sudo docker run -p 8888:8888 –name tf1.11_py2 -it -v /home//wang/:/home//wang 0641cda31e80
switch to
sudo nvidia-docker run -p 8888:8888 –name tf1.11_py3 -it -v /home/wang/:/home/wang 0641cda31e80
Read More:
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- How to Solve Turtle_tf Error in ROS
- Keras import package error: importerror: cannot import name ‘get_ config‘
- OSError libespeak.so.1 error: no such file or directory [How to Solve]
- Raspberry pie Use PCA9685() Error: [Errno 121] Remote I/O error
- [Solved] AttributeError: module ‘logging‘ has no attribute ‘Handler‘
- [How to Solve] ImportError: No module named typing
- AttributeError: module ‘enum‘ has no attribute ‘IntFlag‘ [How to Solve]
- [Solved] django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclie
- Python PIP TypeError: expected str, bytes or os.PathLike object, not int
- Importerror: DLL load failed: unable to find the specified module in Python
- Python installs virtualenv through PIP and always reports an error: response.py“, line 438, in _error_catcher yield
- How to Solve PIP3 error After upgrading pip3 install –upgrade pip
- [Mac Pro M1] Python3.9 import cv2 Error: Reason: image not found
- [Solved] ansible Command Error: Error -5 while decompressing data: incomplete or truncated stream
- [Solved] OpenCV Import Error: ImportError: numpy.core.multiarray failed to import
- [Solved] bert_as_service startup error: Tensorflow 2.1.0 is not tested!
- Gunicorn Flask Error: [ERROR] Socket error processing request
- [Solved] Add-apt-repository Command Error: AttributeError: ‘Thread‘ object has no attribute ‘isAlive‘
- [Solved] mmdetection benchmark.py Error: RuntimeError: Distributed package doesn‘t have NCCL built in