The Great Magnet. What a fool I was to defy him.

Python on Windows — Setting PYTHONPATH Environment Variable

August 31, 2009 · 1 Comment

PYTHONPATH is set on windows in the registry.

Run regedit  (start -> run -> regedit ) and browse to HKEY_LOCAL_MACHINE -> SOFTWARE -> Python -> PythonCore -> [ Version Number ] -> PythonPath.

Don’t alter the pythonpath you see here.

Right click the PythonPath folder and select New –> Key

Name it what you like.

Select the new folder and right click the one blank value sitting on the right side of the screen and select Modify.

For the value field, add your new paths separated by ” ; “

Run python and try an import.

Done!

Categories: Life

1 response so far ↓

Leave a Comment