It indeed depends on the OS, and probably on the version of Python you are using.
As you mentioned, ctrl+C does not work on your Windows 10 with Python 3.6, but it does work on my Windows 10 with Python 3.4. Therefore, you really need to try and see what works for you.
Try the following commands, and keep the one that works:
- ctrl+C
- ctrl+D
- ctrl+Z then Return
In addition, the following should work with any terminal:
exit()
then Returnquit()
then Return
Trivia: if you type quit
and hit Return, the console tells you, at least for Python 3.4:
Use quit() or Ctrl-Z plus Return to exit
Related Posts:
- ow can I find where Python is installed on Windows?
- Python virtualenv questions
- Python command not working in command prompt
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- PermissionError: [WinError 5] Access is denied python using moviepy to write gif
- “python” not recognized as a command
- Python not working in the command line of git bash
- ‘pip’ is not recognized as an internal or external command
- Difference between masm32 and masm?
- How do I start PowerShell from Windows Explorer?
- Tensorflow import error: No module named ‘tensorflow’
- A fatal error occurred while creating a TLS client credential. The internal error state is 10013
- How can I install pip on Windows?
- PermissionError: [Errno 13] Permission denied
- What does “@” mean in Windows batch scripts
- How to run a PowerShell script
- How do I install and use cURL on Windows?
- How to list files in windows using command prompt (cmd). I’ve tried using ‘ ls ‘ as in Linux but it shows an error?
- Setting Windows PowerShell environment variables
- anaconda – path environment variable in windows
- Create an empty file on the commandline in windows (like the linux touch command)
- How to remove anaconda from windows completely?
- How to solve “The directory is not empty” error when running rmdir command in a batch script?
- “X does not name a type” error in C++
- How do I create a Batch file to change an exe installer to Win XP SP3 compatibility mode and launch installer
- How to clear the interpreter console?
- Installing tensorflow with anaconda in windows
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- What languages are Windows, Mac OS X and Linux written in?
- How to run a makefile in Windows?
- Command Prompt “Net View System Error 6118”
- How to run ‘sudo’ command in windows
- Batch script loop
- What is the ‘realtime’ process priority setting for?
- Verify return code: 20 when testing OpenSSL
- Command line for looking at specific port
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- How to uninstall a Windows Service when there is no executable for it left on the system?
- What is the default password for Postgres
- “X does not name a type” error in C++
- How To Activate Windows 10
- ‘npm’ is not recognized as internal or external command, operable program or batch file
- What is the difference between Cygwin and MinGW?
- No Module Named ‘_pywrap_tensorflow_internal’
- Text editor to open big (giant, huge, large) text files
- UnicodeDecodeError: ‘charmap’ codec can’t decode byte X in position Y: character maps to
- Using GNU Scientific Library (GSL) under Windows x64 with MinGW
- Visual C++ executable and missing MSVCR100d.dll
- Can’t start hostednetwork
- How to force `findstr` to ignore `Cannot open` returns
- Npm Please try using this command again as root/administrator
- Choosing a Windows automation scripting language. AutoIt vs Autohotkey
- How to install PyQt5 on Windows?
- “ImportError: No module named site” on Windows
- sudo command not found on Cygwin
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- OpenSSL: PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
- python pip on Windows – command ‘cl.exe’ failed
- python is not recognized windows 10
- What is Windows Fabric and how to host services in it?
- How to open an elevated cmd using command line for Windows?
- Setting up a cron job in Windows
- ImportError: No module named cv2
- ‘openssl’ is not recognized as internal or external command
- docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’
- While loop in batch
- Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
- How to get the text cursor position in Windows?
- How to grant permission to users for a directory using command line in Windows?
- Curl not recognized as an internal or external command, operable program or batch file
- Bridged networking not working in Virtualbox under Windows 10
- Is there a Pattern Matching Utility like GREP in Windows?
- How do you clear the console screen in C?
- What is %0|%0 and how does it work?
- How do I get the current username in Windows PowerShell?
- Can’t start hostednetwork
- How to know/change current directory in Python shell?
- False ‘Sharing Violation’ Xcopy error message
- OS x El capitan 10.11 – Virtualbox – Missing Bluetooth Controller Transport
- How does the echo command works in batch programming
- Visual Studio compiles but the exe isn’t there
- How to split large text file in windows?
- mysql community server vs mysql installer
- How do I use spaces in the Command Prompt?
- What is a Windows Handle?
- Error: Could not find or load main class net.minecraft.launchwrapper.Launch when launching Minecraft 1.12.2 with Forge
- Need auto-restart script in batch for minecraft server
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- Error: No module named ‘fcntl’
- How do I force Robocopy to overwrite files?
- Using sys/socket.h functions on windows
- The requested operation cannot be performed on a file with a user-mapped section open
- How to set commands output as a variable in a batch file
- HyperV is not available on Home editions
- Unable to start MySQL server
- Git Bash doesn’t see my PATH
- Dependency Walker: missing dlls
- How do I execute a *.dll file
- Best practice for exiting batch file?