0

The tensorflow is installed by using "conda install tensorflow". by importing tensorflow with "import tensorflow" in spyder in same environment which tensorflow was installed, it give an error "ModuleNotFoundError: No module named 'tensorflow'".

Mark Benningfield
  • 2,800
  • 9
  • 31
  • 31
afrah
  • 31
  • 8
  • Are you able to import tensorflow outside of spyder in the conda environment? Like in a test python script? – xdhmoore Feb 22 '21 at 11:14
  • 1
    Thanks for your comment. it fixed. The solution is mentioned in answer – afrah Feb 22 '21 at 11:38
  • Does this answer your question? [Tensorflow import error: No module named 'tensorflow'](https://stackoverflow.com/questions/46568913/tensorflow-import-error-no-module-named-tensorflow) – Masoud Keshavarz Feb 22 '21 at 11:56

1 Answers1

1

For every one who is faced with this problem i suggest to check if they have already installed spyder in desired environment with "conda install spyder". I installed it and the problem fixed

afrah
  • 31
  • 8