简体   繁体   English

macOS终端和Python中断

[英]macOS Terminal and Python interruption

I'm not sure how easy a problem this will be to replicate, but I consistently run into this issue: 我不确定要复制的问题有多容易,但是我一直遇到这个问题:

>>> result_df.shap^C^C^C
KeyboardInterrupt

Basically, I'll attempt to type result_df.shape and I'll get "stonewalled" at result_df.shap . 基本上,我将尝试键入result_df.shape并在result_df.shap获得“阻碍”。 This isn't exclusive to trying that exact command - this issue does not discriminate. 这并不是尝试使用确切的命令所独有的-此问题没有区别。 The only way to get back to the >>> empty prompt is to mash Ctrl + C . 返回>>>空提示的唯一方法是将Ctrl + C混入。

Any thoughts as to why this might be? 关于为什么会这样的任何想法?

Here are some potentially relevant specs: 以下是一些可能相关的规格:

MacBook Pro (15-inch, 2016)
macOS High Sierra, 10.13.6

Troubleshooting input issues: 解决输入问题:

  1. Check that your keyboard is not the issue by typing random words and importantly the commands that gave you trouble, and log the keystrokes. 通过输入随机单词(重要的是给您带来麻烦的命令)来检查键盘是否不是问题,并记录击键。 A keyboard tester web site is just a google away (I found this immediately but can't attest to quality.) 键盘测试器网站就在Google之外(我立即发现了 ,但无法证明质量。)

  2. Disconnect and reconnect your keyboard. 断开并重新连接键盘。

  3. Reproduce the issue on another computer. 在另一台计算机上重现该问题。

  4. Edit your SO post showing the repro 编辑您的SO帖子,显示再现

If you follow this procedure I think it will help you find the issue! 如果您遵循此程序,我认为它将帮助您找到问题!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM