title: Cannot install Tensorflow on Ubuntu Linux
body: <p>System Information<br />
  MacBook Air M1<br />
  Ubuntu Linux 20.04 using virtual machine<br />
  Python 3.8.5 64 bits</p>
  <p>I have already installed tensor flow but after importing the library and compiling any code it gives me the following set of error</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/home/mradulagrawal/Desktop/IP/image.py&quot;, line 2, in &lt;module&gt;
      import tensorflow
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/__init__.py&quot;, line 24, in &lt;module&gt;
      from tensorflow.python import *
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/__init__.py&quot;, line 72, in &lt;module&gt;
      raise ImportError(msg)
  ImportError: Traceback (most recent call last):
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/__init__.py&quot;, line 61, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py&quot;, line 28, in &lt;module&gt;
      _pywrap_tensorflow = swig_import_helper()
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py&quot;, line 24, in swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
    File &quot;/usr/lib/python3.8/imp.py&quot;, line 242, in load_module
      return load_dynamic(name, filename, file)
    File &quot;/usr/lib/python3.8/imp.py&quot;, line 342, in load_dynamic
      return _load(spec)
  ImportError: /home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header
  
  
  Failed to load the native TensorFlow runtime.
  
  See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
  
  for some common reasons and solutions.  Include the entire stack trace
  above this error message when asking for help.
  mradulagrawal@ubuntu:~/Desktop$ /usr/bin/python3 /home/mradulagrawal/Desktop/IP/image.py
  Traceback (most recent call last):
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/__init__.py&quot;, line 61, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py&quot;, line 28, in &lt;module&gt;
      _pywrap_tensorflow = swig_import_helper()
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py&quot;, line 24, in swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
    File &quot;/usr/lib/python3.8/imp.py&quot;, line 242, in load_module
      return load_dynamic(name, filename, file)
    File &quot;/usr/lib/python3.8/imp.py&quot;, line 342, in load_dynamic
      return _load(spec)
  ImportError: /home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;/home/mradulagrawal/Desktop/IP/image.py&quot;, line 2, in &lt;module&gt;
      import tensorflow
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/__init__.py&quot;, line 24, in &lt;module&gt;
      from tensorflow.python import *
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/__init__.py&quot;, line 72, in &lt;module&gt;
      raise ImportError(msg)
  ImportError: Traceback (most recent call last):
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/__init__.py&quot;, line 61, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py&quot;, line 28, in &lt;module&gt;
      _pywrap_tensorflow = swig_import_helper()
    File &quot;/home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/pywrap_tensorflow.py&quot;, line 24, in swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
    File &quot;/usr/lib/python3.8/imp.py&quot;, line 242, in load_module
      return load_dynamic(name, filename, file)
    File &quot;/usr/lib/python3.8/imp.py&quot;, line 342, in load_dynamic
      return _load(spec)
  ImportError: /home/mradulagrawal/.local/lib/python3.8/site-packages/tensorflow/python/_pywrap_tensorflow.so: invalid ELF header
  
  
  Failed to load the native TensorFlow runtime.
  
  See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error
  
  for some common reasons and solutions.  Include the entire stack trace
  above this error message when asking for help.
  </code></pre>
  <p>Thank You!</p>