Python installation problem

C

cosmo_general

Hi Folks,

I downloaded a pre-compiled version 2.5, and intalled it without any
error message; and I can command line playing on Python through firing
up IDLE or command-line. However, I just can't compile the python file
existing in a directory. Today, I tried to fire Python in a DOS
window, then I got error message: Python is not a runnable command or
batch file. It means that the eveiornment variables of my Python
interpreter are not set well yet. My computer runs a Windows XP.
Anyboy can help on this? Thanks!


Muddy Coder
 
L

Lie

Hi Folks,

I downloaded a pre-compiled version 2.5, and intalled it without any
error message; and I can command line playing on Python through firing
up IDLE or command-line. However, I just can't compile the python file
existing in a directory. Today, I tried to fire Python in a DOS
window, then I got error message: Python is not a runnable command or
batch file. It means that the eveiornment variables of my Python
interpreter are not set well yet. My computer runs a Windows XP.
Anyboy can help on this? Thanks!

Muddy Coder

AFAIK, Python doesn't set environment variables in Windows. To change
the environment variable, you go to Control Panel > System > Advanced
Environment Variables > System Variables > In "Path" entry, add
Python's installation directory to the end of it (remember to separate
it from other directories with semicolons ;

Alternatively, you can cd your way through python's directory and
always feed absolute path to python.exe, very tiresome, but doesn't
require you to add the environment variable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,610
Members
45,254
Latest member
Top Crypto TwitterChannel

Latest Threads

Top