title: Ubuntu 'Failed to import the site module' error message
body: <p>I get the following error message below. When I try to run a python file with the command <code>python3 training.py</code></p>
  
  <p>I found a potential solution <a href="https://stackoverflow.com/questions/21446220/linux-weird-python-output">here</a> but when I went to make the suggested change it appeared that my machine had what was considered the correct setup.</p>
  
  <p>To clarify, I have did significant research and none of the following fixes work</p>
  
  <ul>
  <li><a href="https://github.com/ContinuumIO/anaconda-issues/issues/286" rel="nofollow noreferrer">GitHub 286</a></li>
  <li><a href="https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1192890" rel="nofollow noreferrer">1192890</a></li>
  <li><a href="https://bugs.launchpad.net/command-not-found/+bug/1480388" rel="nofollow noreferrer">1480388</a></li>
  </ul>
  
  <p>Any suggestions to what it could be and how to fix it?</p>
  
  <pre><code>Failed to import the site module
  Traceback (most recent call last):
    File "/usr/lib/python3.5/site.py", line 580, in &lt;module&gt;
      main()
    File "/usr/lib/python3.5/site.py", line 566, in main
      known_paths = addusersitepackages(known_paths)
    File "/usr/lib/python3.5/site.py", line 287, in addusersitepackages
      user_site = getusersitepackages()
    File "/usr/lib/python3.5/site.py", line 263, in getusersitepackages
      user_base = getuserbase() # this will also set USER_BASE
    File "/usr/lib/python3.5/site.py", line 253, in getuserbase
      USER_BASE = get_config_var('userbase')
    File "/usr/lib/python3.5/sysconfig.py", line 595, in get_config_var
      return get_config_vars().get(name)
    File "/usr/lib/python3.5/sysconfig.py", line 538, in get_config_vars
      _init_posix(_CONFIG_VARS)
    File "/usr/lib/python3.5/sysconfig.py", line 410, in _init_posix
      from _sysconfigdata import build_time_vars
    File "/usr/lib/python3.5/_sysconfigdata.py", line 6, in &lt;module&gt;
      from _sysconfigdata_m import *
  ImportError: No module named '_sysconfigdata_m'
  </code></pre>