ScoopInstaller / Scoop

A command-line installer for Windows.

Home Page:https://scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python in cmd Ctrl+C problem

EECSGEEK opened this issue · comments

python install from scoop (Ctrl+C)KeyboardInterrupt problem in cmd

py_err.png

process:

  1. open cmd.exe
  2. enter python in cmd
  3. in python REPL/shell 【press】【Ctrl+C】
  4. now enter a string, will eval by cmd
  5. loop with: cmd command -> python command -> cmd command

python install from python.org don't have (Ctrl+C)KeyboardInterrupt problem

py_org.png


OS: 10.0.17134 64bit
Python: 3.7

This is most likely an issue with the shim, which Scoop creates to deal with common PowerShell/CMD/Windows incompatibilities. Of course the shims are not perfect.

Try invoke python.exe in the directory of scoop prefix vim directly,

This issue should be fixed in #3998, which was merged into master. To use, type:

scoop config shim kiennq
scoop reset *

or

scoop config shim 71
scoop reset *

Eventually, one of those shims (probably kiennq) will be made the default.

If this issue is still a problem after trying both solutions above, please reopen this issue. Thanks!