Ubuntu: No module named tensorflow in IPython but works in Python (Anaconda environment)
<p>When I try to import tensorflow in IPython in my Anaconda environment, I get a <code>No module named tensorflow</code> error. However, when I import it after running the <code>python</code> command in the terminal, there are no errors.</p>

<p>I've googled for solutions and so far I have tried the following:</p>

<ul>
<li><p>copied the site-packages inside <code>/anaconda2/lib/python2.7/envs/tensorflow/lib/python2.7/site-packages/</code> to <code>/anaconda2/lib/python2.7/site-packages/</code></p></li>
<li><p>installed ipython in the conda environment with <code>conda install ipython</code></p></li>
</ul>

<p>Anyone know what else I could try?</p>

<p>Refer: <a href="http://stackoverflow.com/questions/33646541/tensorflow-and-anaconda-on-ubuntu?rq=1">Tensorflow and Anaconda on Ubuntu?</a></p>

<p>I found a link where the tensorflow.whl files were converted to conda packages, so I went ahead and installed it using the command:</p>

<pre><code>conda install -c https://conda.anaconda.org/jjhelmus tensorflow
</code></pre>

<p>and it worked, since the $PATH points to anaconda packages, I can import it now!</p>

<p><a href="https://anaconda.org/jjhelmus/tensorflow" rel="nofollow">Source is here</a></p>

python ubuntu ipython tensorflow anaconda