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,260 points
17,571 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,460 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".

Ready to dive into the world of machine learning? Supercharge your career and join our comprehensive Machine Learning Course today!
Hope this helps !!!!

answered Nov 17, 2020 by Vignesh

edited Aug 11, 2021 by Soumya

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,460 points
7,978 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,460 points
13,476 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 19, 2020 in Machine Learning by MD
• 95,460 points
3,810 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
• 59,230 points
947 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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,391 views
0 votes
1 answer
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 19, 2019 in Machine Learning by anonymous

edited May 20, 2019 by Omkar 1,357 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,460 points
11,099 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,460 points

edited Aug 11, 2021 by Soumya 43,631 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP