Python not working in command prompt?

前端 未结 20 2138
迷失自我
迷失自我 2020-11-27 15:25

I type python into the command line, but the command prompt says that python is not recognized as an internal or external command, operable program, or batch fi

20条回答
  •  没有蜡笔的小新
    2020-11-27 16:11

    It finally worked!!!

    I needed to do things to get it to work

    1. Add C:\Python27\ to the end of the PATH system variable
    2. Add C:\Python27\ to the end of the PYTHONPATH system variable

    I had to add these to both for it to work.

    If I added any subdirectories, it did not work for some reason.

    Thank you all for your responses.

提交回复
热议问题