Linux: all commands return Fatal Python error: Py_Initialize: Unable to get the locale encoding
<p>I was messing around with my Path variables and after putting the following 3 commands, every shell command I execute would return a Fatal Python error:</p>

<blockquote>
  <p>export PYTHONPATH=$PYTHONPATH:z3/bin</p>
  
  <p>export PATH=$PATH:z3/bin</p>
  
  <p>export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7</p>
</blockquote>

<p>Error message:</p>

<blockquote>
  <p>Fatal Python error: Py_Initialize: Unable to get the locale encoding<br>
  File "/usr/lib/python2.7/encodings/<strong>init</strong>.py", line 123
      raise CodecRegistryError,\
                              ^ SyntaxError: invalid syntax Aborted</p>
</blockquote>

<p>Does anyone how can I fix this? I am running Ubuntu 14.04.</p>