About 1,640,000 results
Open links in new tab
  1. I can't exit out of python on CMD using ctrl + c - Super User

    Feb 9, 2020 · When I tried Python on cmd prompt and tried to exit, the sentence "keyboard interrupt" was displayed instead of exiting. I couldn't find a "break" key to try ctrl + break, so I kept trying ctrl + c.

  2. How to change default python executable on Windows 10?

    Jan 29, 2019 · @cmd /k python --version Does a decent job for me. Just change the first two lines in the PATH variable to your Python directory and the Python Scripts directory. The CMD which will open …

  3. command line - "Python" working but "Py" is not - Super User

    Nov 11, 2020 · If that doesn’t work, open cmd.exe and hit where python that will display out the location of the python.exe. Navigate to the .exe’s parent folder and locate a folder called “launcher”. Inside …

  4. How to run python from Windows cmd? - Super User

    Sep 7, 2023 · Are you running this from straight cmd.exe or using bash from a sub linux os on the system? I would however advise against associating files directly with an interpreter, it is a security risk.

  5. How do I add Python to the Windows PATH? - Super User

    16 For anyone trying to achieve this with Python 3.3+, the Windows installer now includes an option to add python.exe to the system search path. Read more in the docs.

  6. How to run a program with a specific version of Python from the ...

    Jun 3, 2024 · How do I do this? PS: All the Python installations are added to the path, the problem is that the executable is named the same in all of them "python.exe", so when I run "py" or "python" in …

  7. Typing “python” on Windows 10 (version 1903) command prompt …

    May 16, 2019 · On typing “python” from search, opens the Python 2.7 prompt but when I type from command prompt window, it triggers the Microsoft Store. Don't know how to fix it and this never …

  8. python - How do I alias python3 on Windows? - Super User

    Aug 10, 2020 · For Windows versions of Python (i.e. not WSL), python3 is not typically a standard alias. That is, the Python 3.x executable is usually just python (python.exe). Be aware that python.exe …

  9. Python refuses to be recognized in Command Prompt despite multiple ...

    Jun 18, 2020 · I've downloaded and uninstalled Python so many times trying to get this to work. No matter what happens I always get: "'python' is not recognized as an internal or external …

  10. How do I write code of more than 1 line in the Python interpreter?

    In terminal I can run one line of code in the Python interpreter, but how do I write more than one line? Obviously if I hit enter, it enters the command and doesn't go down a line.