TensorFlow in Visual Studio 2015, using Canopy as the Python environment
<p>I followed the instructions on <a href="https://discussions.udacity.com/t/windows-tensorflow-and-visual-studio-2015/45636" rel="nofollow">this page</a> and managed to install <a href="https://www.tensorflow.org/" rel="nofollow">TensorFlow</a> via pip within Visual Studio 2015. My Python environment runs in <a href="https://www.enthought.com/products/canopy/" rel="nofollow">Enthought Canopy</a>. The installation was successful. I refreshed the DB, and auto-completion via IntelliSense was available when I wrote the following line:</p>

<pre><code>from tensorflow.examples.tutorials.mnist import input_data
</code></pre>

<p>However, when I run it in the REPL, I see the following error message:</p>

<pre><code>Traceback (most recent call last):
File "&lt;stdin&gt;", line 1, in &lt;module&gt;
        File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\__init__.py", line 23, in &lt;module&gt;
        from tensorflow.python import *
File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\python\__init__.py", line 49, in &lt;module&gt;
        from tensorflow import contrib
        File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\contrib\__init__.py", line 23, in &lt;module&gt;
        from tensorflow.contrib import layers
        File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\contrib\layers\__init__.py", line 68, in &lt;module&gt;
        from tensorflow.contrib.layers.python.layers import *
File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\contrib\layers\python\layers\__init__.py", line 22, in &lt;module&gt;
        from tensorflow.contrib.layers.python.layers.initializers import *
File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\contrib\layers\python\layers\initializers.py", line 24, in &lt;module&gt;
        from tensorflow.python.ops import random_ops
        File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\python\ops\random_ops.py", line 23, in &lt;module&gt;
        from tensorflow.python.framework import ops
        File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\python\framework\ops.py", line 39, in &lt;module&gt;
        from tensorflow.python.framework import versions
        File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\python\framework\versions.py", line 22, in &lt;module&gt;
        from tensorflow.python import pywrap_tensorflow
        File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in &lt;module&gt;
        _pywrap_tensorflow = swig_import_helper()
File "C:\Users\User\AppData\Local\Enthought\Canopy\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper
import _pywrap_tensorflow
ImportError: No module named _pywrap_tensorflow
</code></pre>

<p>Can anyone shed some light on why I get the message <code>ImportError: No module named _pywrap_tensorflow</code> even though the installation of <code>TensorFlow</code> took place without a hiccup? Any suggestions on how I can resolve this issue?</p>