Issue 1:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MAC Yosemite 10.10.5 (14F27)

TensorFlow installed from (source or binary):source

TensorFlow version: 1.13.1

Python version: Python 3.6.8 :: Anaconda, Inc.

Installed using virtualenv? pip? conda?: pip

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory: 4 GB 1600 MHz DDR3

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem

Any other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Although tensorflow is installed and pip install tensorflow shows that it is already satisfied, but I cannot import tensorflow library

File "/Users/botaduisenbay/Desktop/tester.py", line 9, in

import tensorflow as tf

File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/init.py", line 24, in

from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/init.py", line 49, in

from tensorflow.python import pywrap_tensorflow

File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in

raise ImportError(msg)

ImportError: Traceback (most recent call last):

File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper

_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

File "/Users/botaduisenbay/anaconda3/lib/python3.6/imp.py", line 243, in load_module

return load_dynamic(name, filename, file)

File "/Users/botaduisenbay/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic

return _load(spec)

ImportError: dlopen(/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6): no suitable image found. Did find:

/Users/botaduisenbay/anaconda3/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: truncated mach-o error: segment __LINKEDIT extends to 365926664 which is past end of file 154042368

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace

above this error message when asking for help.

Issue 2:
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

OS Platform and Distribution Windows 10 64 bit

TensorFlow installed from (source or binary): pip install tensorflow

TensorFlow version: 1.12.0

Python version:3.6.5

GPU model and memory: Geforce 150mx 4gb

Describe the problem

I'm unable to import keras using "Tensorflow backend"

when I try to import "from keras.models import Sequential" I get the error shown bellow

These are the steps that I did when I installed the libraries

1- conda create -n tensorflow python=3.5 anaconda.

2- activate tensorflow.

3- conda install theano.

4- conda install mingw libpython.

5-pip install tensorflow.

6- pip install keras.

7- conda update --all

8- pip install tensorflow-gpu

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Error shown:

`from keras.models import Sequential

Using TensorFlow backend.

Traceback (most recent call last):

File "", line 1, in

from keras.models import Sequential

File "C:\Users\MHD\Anaconda3\lib\site-packages\keras_init_.py", line 3, in

from . import utils

File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\utils_init_.py", line 6, in

from . import conv_utils

File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\utils\conv_utils.py", line 9, in

from .. import backend as K

File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\backend_init_.py", line 89, in

from .tensorflow_backend import *

File "C:\Users\MHD\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in

import tensorflow as tf

File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow_init_.py", line 24, in

from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 49, in

from tensorflow.python import pywrap_tensorflow

File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in

raise ImportError(msg)

ImportError: Traceback (most recent call last):

File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "C:\Users\MHD\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper

_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

File "C:\Users\MHD\Anaconda3\lib\imp.py", line 243, in load_module

return load_dynamic(name, filename, file)

File "C:\Users\MHD\Anaconda3\lib\imp.py", line 343, in load_dynamic

return _load(spec)

ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace

above this error message when asking for help.`