ModuleNotFoundError No module named tensorflow

0 votes

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'
Apr 21, 2020 in Machine Learning by akhtar
• 38,170 points
9,661 views

2 answers to this question.

0 votes

Hi@akhtar,

To avoid this error, you can use this below given command.

$ conda install tensorflow

But before installing this make sure you have numpy in your system.

answered Apr 21, 2020 by MD
• 95,060 points
0 votes
If you are using Anaconda, go to "Environments" and search for TensorFlow. Install that in a separate environment and activate that by "conda activate".

Hope this helps !!!!
answered Nov 17, 2020 by Vignesh

Related Questions In Machine Learning

+1 vote
1 answer

ModuleNotFoundError: No module named 'mnist'

Hi@akhtar, This mnist package comes with keras module ...READ MORE

answered May 9, 2020 in Machine Learning by MD
• 95,060 points
1,982 views
0 votes
1 answer

ModuleNotFoundError: No module named 'cPickle'

Hi@akhtar, There is no cPickle module in Python 3. ...READ MORE

answered Jul 14, 2020 in Machine Learning by MD
• 95,060 points
1,614 views
0 votes
1 answer

AttributeError: module 'tensorflow.compat' has no attribute 'v1'

Hi@Usman, It seems you are using an older ...READ MORE

answered Jul 18, 2020 in Machine Learning by MD
• 95,060 points
1,930 views
0 votes
1 answer

After installation of tensorflow ,attribute error: no Session module exists

To install TensorFlow you need to have ...READ MORE

answered Mar 16, 2020 in Machine Learning by Sirajul
• 58,990 points
302 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,836 views
0 votes
0 answers
0 votes
0 answers

Hello I have some errors while implementing variational autoencoder

def dense_layers(sizes): return tfk.Sequential([tfkl.Dense(size, ...READ MORE

May 18, 2019 in Machine Learning by anonymous

edited May 20, 2019 by Omkar 581 views
0 votes
1 answer

ImportError: No module named 'tensorflow.contrib.rnn.python.ops.core_rnn

Hi@akhtar, I think you got this error because of incompatible ...READ MORE

answered Apr 22, 2020 in Machine Learning by MD
• 95,060 points
6,353 views
+1 vote
1 answer

ModuleNotFoundError: No module named 'keras'

Hi@akhtar, I think this problem is related to ...READ MORE

answered Apr 23, 2020 in Machine Learning by MD
• 95,060 points

edited Dec 15, 2020 by MD 14,383 views