ModuleNotFoundError: No module named 'tensorflow'

Machine Learning

Hi Guys,

I installed tensorflow in my system, but I am not able to import this module. I got this below error.

ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-d6579f534729> in <module>
----> 1 import tensorflow

ModuleNotFoundError: No module named 'tensorflow'



This issue could arise when you are actually using the virtual environment. In Anaconda, Jupyter and Spyder Notebook will work by default. When the same comes to the tensorflow, tensorflow is installed in an isolated virtual environment venv. Hence, you will need to install a new Jpyter or Spyder notebook under the virtual environment.


You can install TensorFlow in the main (base) environment by using the following command.

pip3 install tensorflow


If you want to unleash your potential in this competitive field, please visit the Machine Learning course page for more information, where you can find the Machine Learning tutorials and Machine Learning frequently asked interview questions and answers as well.


This topic has been locked/unapproved. No replies allowed

Login to participate in this discussion.

Leave a reply

Before proceeding, please check your email for a verification link. If you did not receive the email, click here to request another.