简体   繁体   English

Python 脚本未在 Notepad++ 中正确终止

[英]Python script not terminating properly in Notepad++

I have installed anaconda3 and notepad++, I'm trying to link NppExec, a Notepad++'s plugin so that not only I can run both pure python and other libraries (like matplotlib or numpy).我已经安装了 anaconda3 和 notepad++,我正在尝试链接 NppExec,一个 Notepad++ 的插件,这样我不仅可以运行纯 python 和其他库(如 matplotlib 或 numpy)。 I have found one solution at: Cannot run conda command 'activate' with NppExec plugin of Notepad++我在以下位置找到了一种解决方案: 无法使用 Notepad++ 的 NppExec 插件运行 conda 命令“激活”

This solution works, however when I run it the execution of the process does not terminate and I am forced to press Ctrl+C in the console to terminate it manually.此解决方案有效,但是当我运行它时,进程的执行不会终止,我被迫在控制台中按 Ctrl+C 以手动终止它。 I think this is due to anaconda's activate file not having an end (probably in the bat file?).我认为这是由于 anaconda 的激活文件没有结束(可能在 bat 文件中?)。 Is there a workaround to this?有解决方法吗? Maybe with a termination clause in the bat file or a clever workaround in notepad?也许在 bat 文件中使用终止子句或在记事本中使用巧妙的解决方法?

正如贾斯汀评论的那样使用 activate.bat & python "$(FULL_CURRENT_PATH)" 并在执行后自动关闭

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

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