So I have searched this question before, and it's been answered satisfactorily for other users on stackoverflow (Python (Windows) - ImportError: No module named site). stackoverflow says I should avoid asking a question in an answer on that page, and I do not have enough reputation to comment.
So here is the issue (repeated from other question): when I run python, I get the error "ImportError: No module named site"
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.
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.
The application runs as a user with admin rights, but doesn't run for the created limited account.
I've reduced the command file to the following:
set PYTHONHOME=C:\Python27
set PYTHONPATH=C:\Python27\lib
set PATH=%PYTHONHOME%;%PATH%
python
pause
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.