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:
- [Solved] Import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
- OSError libespeak.so.1 error: no such file or directory [How to Solve]
- PIP Install Mysqlclient error C1083: Cannot open include file: ‘mysql.h‘: No such file or directory
- [Solved] Python project runs the open() function error: FileNotFoundError: [Errno 2] No such file or directory
- Keras import package error: importerror: cannot import name ‘get_ config‘
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- [Solved] OpenCV Import Error: ImportError: numpy.core.multiarray failed to import
- The solution of no such file or directory and cannot load native module running error of python3 pyinstaller after packaging
- [Solved] Django project locally Open Error: importerror: couldn’t import Django
- [Solved] Python Relative Reference Error: ImportError: attempted relative import with no known parent package
- Error reading file by pandas pandas.errors.EmptyDataError: no columns to parse from file
- fatal error: cublas_v2.h: No such file or directory [How to Solve]
- [How to Solve] ImportError: No module named typing
- [Solved] Tensorflow cuda Error: Could not load dynamic library ‘libcudart.so.11.0‘; dlerror: libcudart.so.11.0:
- How to Solve Python ImportError: cannot import name UnrewindableBodyError
- Raspberry pie import opencv error: ImportError: numpy.core.multiarray failed to import
- Import win32API; importerror: DLL load failed: the specified program was not found
- PyCharm: How to Solve Tensorflow_datasets Import Error
- [Solved] From pip._internal import cmdoptions ImportError: cannot import name SourceDistribution