<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):No</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Windows 10</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary):anaconda</li>
<li>TensorFlow version (use command below):latest</li>
<li>Python version:3.6.5</li>
<li>Bazel version (if compiling from source):No</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:No</li>
<li>GPU model and memory:920m</li>
</ul>
<p dir="auto">code used to convert the file:<br>
from tensorflow.contrib import lite<br>
keras_file = "movie_classifier.h5"<br>
keras.models.save_model(model, keras_file)<br>
converter = lite.TocoConverter.from_keras_model_file(keras_file)<br>
tflite_model = converter.convert()<br>
open("linear.h5" , wb).write(tflite_model)</p>
<p dir="auto">Error is as follows:<br>
RuntimeError: TOCO failed see console for info.<br>
b'C:\ProgramData\Anaconda3\lib\site-packages\h5py\<strong>init</strong>.py:36: FutureWarning: Conversion of the second argument of issubdtype from <code class="notranslate">float</code> to <code class="notranslate">np.floating</code> is deprecated. In future, it will be treated as <code class="notranslate">np.float64 == np.dtype(float).type</code>.\r\n  from ._conv import register_converters as _register_converters\r\nTraceback (most recent call last):\r\n  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\lite\toco\python\tensorflow_wrap_toco.py", line 18, in swig_import_helper\r\n    fp, pathname, description = imp.find_module('_tensorflow_wrap_toco', [dirname(<strong>file</strong>)])\r\n  File "C:\ProgramData\Anaconda3\lib\imp.py", line 297, in find_module\r\n    raise ImportError(_ERR_MSG.format(name), name=name)\r\nImportError: No module named '_tensorflow_wrap_toco'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File "C:\ProgramData\Anaconda3\Scripts\toco_from_protos-script.py", line 6, in \r\n    from tensorflow.contrib.lite.toco.python.toco_from_protos import main\r\n  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\lite\toco\python\toco_from_protos.py", line 22, in \r\n    from tensorflow.contrib.lite.toco.python import tensorflow_wrap_toco\r\n  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\lite\toco\python\tensorflow_wrap_toco.py", line 28, in \r\n    _tensorflow_wrap_toco = swig_import_helper()\r\n  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\contrib\lite\toco\python\tensorflow_wrap_toco.py", line 20, in swig_import_helper\r\n    import _tensorflow_wrap_toco\r\nModuleNotFoundError: No module named '_tensorflow_wrap_toco'\r\n'<br>
None</p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow):NO</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):WINDOWS 10</li>
<li>TensorFlow installed from (source or binary):anaconda</li>
<li>TensorFlow version (use command below):1.9</li>
<li>Python version:3.6</li>
<li>Bazel version (if compiling from source):NO</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:no</li>
<li>GPU model and memory:no<br>
-Exact Command:toco help</li>
</ul>
<p dir="auto">Describe the problem<br>
I am trying to run the codelab tutorial of tensorflow lite. After installing Tensorflow for cpu in anaconda3 environment , when I try to run the command "toco --help", I get the error ModuleNotFoundError: No module named 'tensorflow.contrib.lite.toco.python.tflite_convert'.</p>
<p dir="auto">source code/logs</p>
<p dir="auto">Traceback (most recent call last):<br>
File "c:\users\hp\anaconda3\envs\tensorflow\lib\runpy.py", line 193, in _run_module_as_main<br>
"<strong>main</strong>", mod_spec)<br>
File "c:\users\hp\anaconda3\envs\tensorflow\lib\runpy.py", line 85, in <em>run_code<br>
exec(code, run_globals)<br>
File "C:\Users\hp\Anaconda3\envs\tensorflow\Scripts\toco.exe_<em>main</em></em>.py", line 5, in <br>
ModuleNotFoundError: No module named 'tensorflow.contrib.lite.python.tflite_convert'</p>