i can't import tensorflow in python

Question:

I have successfully installed TensorFlow using pip, but when attempting to import it, I encounter an error: 'ImportError: No module named '_pywrap_tensorflow_internal'. The error message also states that the native TensorFlow runtime failed to load. What can I do to resolve this issue?

Error Screenshot here

Asked By: loopassembly

||

Answers:

Use python version Python 3.8.8 or above :

pip install --user virtualenv

Activate your virtual enviroment and type the command in your console

pip install tensorflow
pip3 install tensorflow

Tensorflow package is of something around 200mb or above so be patient and let it to be install

Answered By: loopassembly
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.