Python not working in command prompt?

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

    They gave us a script to do this for us already

    C:\Users\hUTBER\AppData\Local\Programs\Python\tools\scripts\win_add2path.py
    

    You'll need to make sure that you close and open the cmd otherwise it won't have the new path there.

    If you can't find this script these are the paths that it will add and I had to add manually in the end.

    C:\Users\hUTBER\AppData\Local\Programs\Python\Python35
    C:\Users\hUTBER\AppData\Local\Programs\Python\Python35\Scripts
    

    Where mine and now python works in the cmd

提交回复
热议问题