keras import error no attribute 'getdlopenflags'
<p>I am new to <code>keras</code>, and I have downloaded <code>theano</code>, <code>scipy</code> and <code>numpy</code> modules, but when I want to <code>import keras</code>, the command window tells me that </p>

<pre><code>"Using TensorFlow backend.
Traceback (most recent call last):
File "F:\eclipse\dasd\aaa\aaaa.py", line 7, in &lt;module&gt;
import keras
File "D:\Anaconda2\lib\site-packages\keras\__init__.py", line 2, in &lt;module&gt;
from . import backend
File "D:\Anaconda2\lib\site-packages\keras\backend\__init__.py", line 64, in &lt;module&gt;
from .tensorflow_backend import *
File "D:\Anaconda2\lib\site-packages\keras\backend\tensorflow_backend.py", line 1, in &lt;module&gt;
import tensorflow as tf
File "D:\Anaconda2\lib\site-packages\tensorflow\__init__.py", line 23, in &lt;module&gt;
from tensorflow.python import *
File "D:\Anaconda2\lib\site-packages\tensorflow\python\__init__.py", line 47, in &lt;module&gt;
_default_dlopen_flags = sys.getdlopenflags()
    AttributeError: 'module' object has no attribute 'getdlopenflags'"
</code></pre>

<p>my computer system is win7-64 and I haven't downloaded CUDA because my graphics card is ATI's.</p>

<p>Keras is using Tensorflow by default. You need to explicitly switch to Theano, see the <a href="https://keras.io/backend/" rel="nofollow">official documentation</a> for the current procedure, for example by setting the environment variable <code>KERAS_BACKEND</code> to <code>theano</code>.</p>

python machine-learning theano keras