llSourcell / tensorflow_speech_recognition_demo

This is the code for 'How to Make a Simple Tensorflow Speech Recognizer' by @Sirajology on Youtube
383 stars 250 forks source link

from tensorflow.contrib.rnn.python.ops.core_rnn import static_rnn as _rnn, \ ImportError: No module named core_rnn #9

Open samimoftheworld opened 7 years ago

samimoftheworld commented 7 years ago

$ python demo.py I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally Traceback (most recent call last): File "demo.py", line 2, in import tflearn File "/usr/local/lib/python2.7/dist-packages/tflearn/init.py", line 21, in from .layers import normalization File "/usr/local/lib/python2.7/dist-packages/tflearn/layers/init.py", line 10, in from .recurrent import lstm, gru, simple_rnn, bidirectional_rnn, \ File "/usr/local/lib/python2.7/dist-packages/tflearn/layers/recurrent.py", line 8, in from tensorflow.contrib.rnn.python.ops.core_rnn import static_rnn as _rnn, \ ImportError: No module named core_rnn

spirovykt commented 7 years ago

You will should delete current Tensorflow version and install again. Just ignore requirements. On Ubuntu it looks like: $sudo pip uninstall tensorflow $sudo pip install tensorflow Pip is Python module for easy install other modules (libraries)

Maybe the following helps you in other case: -Change interpreter of current Project (either to 3.5 or 2.7)