python "No module named site"
<p>So I have searched this question before, and it's been answered satisfactorily for other users on stackoverflow (<a href="https://stackoverflow.com/questions/5599872/python-windows-importerror-no-module-named-site">Python (Windows) - ImportError: No module named site</a>).  stackoverflow says I should avoid asking a question in an answer on that page, and I do not have enough reputation to comment.</p>

<p>So here is the issue (repeated from other question): when I run python, I get the error "ImportError: No module named site"</p>

<p>I installed it as a different user, but with the option to install for all users.  That account is privileged (administrators), and when I run python it works just fine.  I'm setting up this computer to run a small interface for other users, so want it to run under a normal account that multiple people will have the password for.</p>

<p>This is a Windows 7 box; I completely removed ALL versions of python and installed the latest Python 2.7 (currently 12, as I write this) and PyQt4.</p>

<p>The application runs as a user with admin rights, but doesn't run for the created limited account.</p>

<p>I've reduced the command file to the following:</p>

<pre><code>set PYTHONHOME=C:\Python27
set PYTHONPATH=C:\Python27\lib
set PATH=%PYTHONHOME%;%PATH%
python
pause
</code></pre>

<p>I've also tried using quotes around the paths.  It is correct - if I run this as the user that installed python, it works.  Obviously the issue is not paths or environment variables.</p>