Good day. Python 3.5.2 is installed on the machine (w7):

In PATH, everything seems to be okay too (?)

However, the cmd script calls the following response:

C: \ 1.py

C: \

That is - no way. Cmd reacts like this to a script with errors, without errors, simple, complex, with output, with input ... Internet did not give any hint.

    2 answers 2

    In the process of writing the question I figured out what was happening, I decided to leave the question - suddenly it would be useful for someone. PyCharm was installed on the computer, which was considered to be the default program for opening .py files, and it all messed up. As soon as python.exe was installed as the default program, everything began to work. It is logical, but yesterday I did not get to that.

    You can explicitly specify in which program to open scripts:

     Π‘:\ python.exe 1.py 

    In this case, even if the default is another program, it will still open in python.exe

    • Yes, I also found this later) but I still stubbornly wanted to get the command line to understand me without it :) - Fruling