0

ok so i installed tensorflow 1.12.0 on python 3.6.4 and i wanted to import tensor to see if everthing is ok and then that happened

i expected successfull install and that happened i have cuda and cudnn installed i tried alot of stuff please help

uninstall reinstall force install

PS H:\Program Files (x86)\Python36-32> python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])
  File "H:\Program Files (x86)\Python36-32\lib\imp.py", line 297, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
    import _pywrap_tensorflow_internal
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])
  File "H:\Program Files (x86)\Python36-32\lib\imp.py", line 297, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
    import _pywrap_tensorflow_internal
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal '``
==============================================================================
and that happen if you do the import tensorflow as tf in side his own directory
==============================================================================
```python
PS H:\Program Files (x86)\Python36-32\Lib\site-packages\tensorflow\python> python test.py
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import tensorflow as tf
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "H:\Program Files (x86)\Python36-32\lib\site-packages\tensorflow\python\__init__.py", line 47, in <module>
    import numpy as np
  File "C:\Users\Sagi\AppData\Roaming\Python\Python36\site-packages\numpy\__init__.py", line 142, in <module>
    from . import core
  File "C:\Users\Sagi\AppData\Roaming\Python\Python36\site-packages\numpy\core\__init__.py", line 100, in <module>
    from . import _internal
  File "C:\Users\Sagi\AppData\Roaming\Python\Python36\site-packages\numpy\core\_internal.py", line 20, in <module>
    IS_PYPY = platform.python_implementation() == 'PyPy'
AttributeError: module 'platform' has no attribute 'python_implementation'```
Sagi zawi
  • 21
  • 4

0 Answers0