import site failed; use -v for traceback

Kept getting this message when I ran the python interpreter under Windows

`import site failed; use -v for traceback

Turns out the PYTHONPATH environment variable was damaged. Fix by right My Computer –> Properties (or Windows key + break) –> Advanced –> Environment Variables

Edit (or New)

Variable name = PYTHONPATH

Variable value =C:\PYTHON26;C:\PYTHON26\DLLS;C:\PYTHON26\LIB;

This entry was posted by Edobashira. Bookmark the permalink.

6 thoughts on “import site failed; use -v for traceback”

Leave a Reply

Note: only a member of this blog may post a comment.