Python not working in command prompt?

前端 未结 20 2123
迷失自我
迷失自我 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:02

    Here's one for for office workers using a computer shared by others.

    I did put my user path in path and created the PYTHONPATH variables in my computer's PATH variable. Its listed under Environment Variables in Computer Properties -> Advanced Settings in Windows 7.

    Example:

    C:\Users\randuser\AppData\Local\Programs\Python\Python37

    This made it so I could use the command prompt.

    Hope this helped.

提交回复
热议问题