Eka Eka -4 years ago 210
Python Question

How to set path for python

I have installed pyton 2.7.3 in my localmachine (windows 7 ) and as instructed in http://docs.python.org/tutorial/interpreter.html and I tried to set path using cmd prompt.

set path=%path%;C:\python27

But when I typed python in command line this error is showing

Traceback (most recent call last): File"<stdin>",line 1, in <module>
Nameerror:name 'python' is not defined

I also tried to add path manually

Start Menu > Control Panel > System & Security > System > Advanced System Settings/

Under System variables-path->edit and added this code ;C:\python27

But still when I type python in command line I get the same error

What should I do?

Answer Source

You must be doing the second part, executing python command in python interpreter itself.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download