13

I have python 3.1 installed, and I have added it to the system path too. Now I can open "cmd" and type python to start python, but whenever I try to open cmd in a specific directory by using (shift + right click -> open command prompt here), and type python, it says "command not found"!

How can I fix this?

1

2 Answers 2

15

Right click on my computer>got to properties>advanced settings>environmental variables>

choose path and add the installed python dirtory to that path as like below:

C:\WINDOWS\system32;C:\WINDOWS;C:\Python27

Sign up to request clarification or add additional context in comments.

2 Comments

Yes. That's exactly what the answer from 2 1/2 years ago already said.
@glglgl Yes. This is a better answer because it's easier than following an external link.
8

You need to set up the environment variables in Windows.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.