0

When I try to import tensorflow in IPython in my Anaconda environment, I get a No module named tensorflow error. However, when I import it after running the python command in the terminal, there are no errors.

I've googled for solutions and so far I have tried the following:

  • copied the site-packages inside /anaconda2/lib/python2.7/envs/tensorflow/lib/python2.7/site-packages/ to /anaconda2/lib/python2.7/site-packages/

  • installed ipython in the conda environment with conda install ipython

Anyone know what else I could try?

jlcv
  • 1,688
  • 5
  • 21
  • 50

1 Answers1

0

Refer: Tensorflow and Anaconda on Ubuntu?

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

conda install -c https://conda.anaconda.org/jjhelmus tensorflow

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

Source is here

Community
  • 1
  • 1
Sayali Sonawane
  • 12,289
  • 5
  • 46
  • 47