Geany Cannot Run Python

I'm not a great coder, actually I'm just trying to learn, but I can't get Geany to rewrite Python on my system (Windows 7) when I try to execute a program. When I click Run, it opens a command prompt with the message:

'python' is not recognized as an internal or external command, operating program, or batch file

How can i fix this?

+5
source share
4 answers

Add the Python executable to PATH. For example, I have Python installed at:

C:\Program Files\Python 3.2

So, click Win+ Pause/Breakand go to "Advanced System Settings":

System settings

" " , PYTHONDIR Python:

Adding a new environment variable

, PATH. , %PYTHONDIR%; ;%PYTHONDIR . .

Adding the PYTHONDIR to the PATH variable

+12

, , , , , . script "geany". , geany, geany. script , .

+2

. python PATH, cmd. . , , .py . , .

0

All Articles