[Tutor] pythonpath
Walter Prins
wprins at gmail.com
Mon Nov 1 23:13:32 CET 2010
On 1 November 2010 21:58, Chris King <g.nius.ck at gmail.com> wrote:
> the first way with work for Window, the second is for Linux or posix
> systems
>
> Sorry I can't help with PYTHONPATH on windows.
>
>
To set a PYTHONPATH in Windows, click "Start", right click "My computer",
click "Properties", click "Advanced" tab/section, click "Environment
variables" button. See if you can find an entry in either the User
variables or the System variables sections named "PYTHONPATH". If not, add
a new entry to "User variables" by clicking "New", and entering the name
"PYTHONPATH" and whatever you want for the path. Click "OK", "OK", "OK" and
you should be back to the desktop. Open the Python shell, and enter:
>>> import sys
>>> print sys.path
['C:\\Python26\\Lib\\idlelib',
'C:\\Python26\\lib\\site-packages\\pip-0.8.1-py2.6.egg', 'C:\\Test',
'C:\\Python26\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib',
'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26',
'C:\\Python26\\lib\\site-packages']
As you can see have an entry "C:\\Test" due to the fact that I created that
as the contents of my "PYTHONPATH" variable.
HTH,
Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20101101/0880554b/attachment.html>
More information about the Tutor
mailing list