title: No module named 'encodings'
body: <p>My operating system is Ubuntu 17.10.</p>
  
  <p>I have am trying to run (and develop) a python project, but when I do I get:</p>
  
  <pre><code>Fatal Python error: Py_Initialize: Unable to get the locale encoding
  ModuleNotFoundError: No module named 'encodings'
  
  Current thread 0x00007f8c459bf740 (most recent call first):
  </code></pre>
  
  <p>I have tried advice from <a href="https://stackoverflow.com/questions/38132755/importerror-no-module-named-encodings">ImportError: No module named &#39;encodings&#39;</a>, namely:</p>
  
  <ol>
  <li>I have removed old virtual environment,  </li>
  <li>create a new one, named <code>venv</code></li>
  <li>run <code>source venv/bin/activate</code></li>
  <li><code>pip install -r requirements.txt</code></li>
  </ol>
  
  <p>Also, in pycharm, I have gone File > Settings > Project  > Project Interrupter - and set this to use the same virtual environment. </p>
  
  <p>I have also tried <code>sudo dpkg-reconfigure python3</code></p>
  
  <p>But I still get the same error.</p>