title: Python, PyInstaller error: no module named "Encodings" and system codec missing
body: <p>I am using Python 3.3.3 and I have been trying to build a .exe from a simple .py script.</p>
  
  <p>My script looks like this:</p>
  
  <pre><code>import encodings
  
  print('Test')
  </code></pre>
  
  <p>and executes correctly.</p>
  
  <p>When I try to build it with PyInstaller with this command:</p>
  
  <p><code>pyinstaller --onefile Testmodul.py</code></p>
  
  <p>and try to open my .exe it shows up with this error:
  <code>Fatal Python error: Py_Initialize: unable to load the file system codec, ImportError: No module named 'encodings'</code></p>
  
  <p>I already tried importing the 'encodings' module in my testscript but it is still not working, I have also tried py2exe and it is also not working at all.</p>
  
  <p>Is there anything I do wrong? Do I have to setup something in my PATH? the correct path to "C:\Python33" is included in there already.</p>
  
  <p>EDIT: To everyone with this problem: I gave up, and after a fresh install of windows and python and all the other stuff, I tried it again, the same way as before and it worked without a problem.. It is worth a try if you are really desperate! </p>