cannot run python script file using windows prompt

前端 未结 4 2035
既然无缘
既然无缘 2021-01-22 00:05

I am trying to run a python script from the windows command prompt, but I receive the following error message:

\"python: can\'t open file \'pacman.py\': [Errno 2] No

4条回答
  •  有刺的猬
    2021-01-22 00:52

    SOLVED! So the comments were right in that I had to change the directory to the location of the file, but what was missing was that I had to edit the system environment variable PATH to include the location of python.exe, which is my case was C:\program files (x86)\python27 but for most people is just C:\python27. Thanks everyone for all your help!

提交回复
热议问题