| | |
I need help with setting up a "Path"......
![]() |
Hey I'm a new member here. I just need some help. I need help with setting the path for python. I must set a path in Windows to the directory where the Python.exe is located so that I can execute Python script. I need to get the directory containing the file names python.exe to be listed in my system environment variable named "path." If you guys can give me a step by step procedure that'll be great. I need to set the path because I want to execute my script at the "Command Prompt" to see if I did it correctly and also to see if I get the value "13." Thanks, I'll be in contact.
My regards,
luxnova
My regards,
luxnova
PYTHONPATH is installed by the python installer package (python-2.4.1.msi or python-2.4.1.exe) that you hopefully downloaded from: http://www.python.org
This program will show you the path ...
The result will be a list looking something like that:
depending on what you have installed and where Python is installed. The first element in the list is the present working directory.
It should not be necessary, but on Windows XP the path can be entered manually via the control panel, these are the steps:
control panel>System>Advanced>Environment Variable
This program will show you the path ...
Python Syntax (Toggle Plain Text)
import sys print sys.path
The result will be a list looking something like that:
Python Syntax (Toggle Plain Text)
['D:\\Python24\\Atest', 'D:\\Python24\\python24.zip', 'D:\\Python24\\Atest', 'D:\\Python24\\DLLs', 'D:\\Python24\\lib', 'D:\\Python24\\lib\\plat-win', 'D:\\Python24\\lib\\lib-tk', 'D:\\Python24', 'D:\\Python24\\lib\\site-packages', 'D:\\Python24\\lib\\site-packages\\Numeric', 'D:\\Python24\\lib\\site-packages\\PIL', 'D:\\Python24\\lib\\site-packages\\win32', 'D:\\Python24\\lib\\site-packages\\win32\\lib', 'D:\\Python24\\lib\\site-packages\\Pythonwin', 'D:\\Python24\\lib\\site-packages\\wx-2.5.4-msw-unicode']
It should not be necessary, but on Windows XP the path can be entered manually via the control panel, these are the steps:
control panel>System>Advanced>Environment Variable
May 'the Google' be with you!
![]() |
Similar Threads
- Passing data from forms from one page to another (JavaScript / DHTML / AJAX)
- Dev-C++ - [Build Error] [main.o] Error 1 (C++)
- Open In New Window Php (PHP)
- java Servelets (Java)
- qbasic program under Windows XP (Legacy and Other Languages)
- Windows XP Prof BSOD when playing games (Windows NT / 2000 / XP)
- Compiling And Running (Java)
Other Threads in the Python Forum
- Previous Thread: Classes in Tk
- Next Thread: I have a problem with python....help
| Thread Tools | Search this Thread |
address alarm anydbm app beginner cipher conversion coordinates curves cx-freeze data development dictionary directory dynamic examples excel feet file float format function generator getvalue gui halp handling homework images import input ip itunes java keycontrol line linux list lists loan loop maintain maze millimeter mouse mysqldb number numbers output parsing path port prime programming projects py2exe pygame pyglet pymailer python queue random recursion recursive screensaverloopinactive script scrolledtext searchingfile shebang slicenotation split ssh string strings table terminal text thread threading time tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables ventrilo verify vigenere web webservice wx.wizard wxpython xlwt






