Unable to run Python interpreter in terminal, through Anaconda3
<p>When I try the "python" or "python3" command to run the interpreter, this is the error am getting.</p>

<pre><code>[sidgupta234@sidgupta234-Lenovo-G580 Downloads]$ python
    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>

<p>Output to <code>which python</code></p>

<pre><code>[sidgupta234@sidgupta234-Lenovo-G580 Downloads]$ which python
/usr/bin/python
</code></pre>

<p>Output to <code>python -V</code></p>

<pre><code>[sidgupta234@sidgupta234-Lenovo-G580 Downloads]$ python -V
Python 3.5.2 :: Continuum Analytics, Inc.
</code></pre>

<p><br><br>
Could you tell me the reason of this error and how can I remove it?
I found this <a href="https://forum.siduction.org/index.php?topic=5489.0" rel="nofollow">link</a> while looking for the solution, but it didnt make any difference.</p>

<p>I guess <a href="https://ostrokach.github.io/posts/configuring_apache_django_anaconda/" rel="nofollow">configuring_apache_django_anaconda</a> is relevant, if you look at the troubleshooting section. </p>

<blockquote>
  <p>This means that apache is using Python 2 instead of Python 3 to run a program that is designed for Python 3 only, and fails because Python 2 does not have the _sysconfigdata_m module. The solution is to add the following file to your apache envvar file (/etc/apache2/envvar):
  export PATH=/opt/anaconda3/bin:$PATH</p>
</blockquote>

<p>So maybe check which version of python anaconda is running?</p>

<p>Also these two might be related:<a href="http://stackoverflow.com/questions/21446220/linux-weird-python-output">Linux - Weird Python Output</a></p>

<p><a href="https://bugs.launchpad.net/command-not-found/+bug/1480388" rel="nofollow">ubuntu anaconda suggested fix</a></p>

<p>I would suggest you print your PATH variable to see if you have several python3 entries in there, and try to specify explicity which one to run.</p>

python anaconda