This one is a famous question but int his scenario it's different and I couldn't find a solution which satisfy my problem. However this is it. I installed Python and Anaconda and Tensorflow in my computer like Tensorflow website describes.
And I installed it correctly and even tried example which provides by the Tensorflow website to check whether the Tensorflow working and it was succeeded. It runs in Anaconda prompt, Python prompt and python IDLE without a problem.
But when I try a script in Spyder and runs it in python console or ipython console, it gives me following error.
runfile('C:/Users/home/.spyder-py3/temp.py', wdir='C:/Users/home/.spyder-py3')
Traceback (most recent call last):
File "<ipython-input-2-4aa1bb797551>", line 1, in <module>
runfile('C:/Users/home/.spyder-py3/temp.py', wdir='C:/Users/home/.spyder-py3')
File "C:\Users\home\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 880, in runfile
execfile(filename, namespace)
File "C:\Users\home\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/home/.spyder-py3/temp.py", line 1, in <module>
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'
I don't know why is that and couldn't find a solution.