python windows 下 pp模块 ‘TASKKILL'不是内部或外部命令,也不是可运行的程序或批处理文件 的解决方案
来源:互联网 发布:ketchup 2017 for mac 编辑:程序博客网 时间:2024/06/06 01:07
https://www.parallelpython.com/component/option,com_smf/Itemid,1/topic,786.0
Hi,
Just a brief note. PP works well with pypy (on Windows), however on shutdown, you get (harmless) failure messages from the invocation of 'TASKKILL' in pp.py line 823 (version 1.6.5) due to the child processes already being dead and absent at the time when the TASKKILL is called. This does not occur using normal CPython and I've not investigated why this is different between CPython and PyPy.
Nonetheless, since it is harmless, and the child processes are already gone, I'd like to suggest that the TASKKILL line is modified as follows to suppress the spurious error output:
pp.py version 1.6.5 line 823, change from:
os.popen('TASKKILL /PID '+str(worker.pid)+' /F')
to
os.popen('TASKKILL /PID '+str(worker.pid)+' /F 2>NUL')
Regards,
Walter
Just a brief note. PP works well with pypy (on Windows), however on shutdown, you get (harmless) failure messages from the invocation of 'TASKKILL' in pp.py line 823 (version 1.6.5) due to the child processes already being dead and absent at the time when the TASKKILL is called. This does not occur using normal CPython and I've not investigated why this is different between CPython and PyPy.
Nonetheless, since it is harmless, and the child processes are already gone, I'd like to suggest that the TASKKILL line is modified as follows to suppress the spurious error output:
pp.py version 1.6.5 line 823, change from:
os.popen('TASKKILL /PID '+str(worker.pid)+' /F')
to
os.popen('TASKKILL /PID '+str(worker.pid)+' /F 2>NUL')
Regards,
Walter
我的位置是line 873
阅读全文
0 0
- python windows 下 pp模块 ‘TASKKILL'不是内部或外部命令,也不是可运行的程序或批处理文件 的解决方案
- 'netstat' 不是内部或外部命令,也不是可运行的程序或批处理文件-解决方案
- 'netstat' 不是内部或外部命令,也不是可运行的程序或批处理文件-解决方案(转)
- 'netstat' 不是内部或外部命令,也不是可运行的程序或批处理文件-解决方案
- Windows 'setspn' 不是内部或外部命令,也不是可运行的程序或批处理文件
- 'python' 不是内部或外部命令,也不是可运行的程序或批处理文件。
- Python中 pip不是内部或外部命令,也不是可运行的程序 或批处理文件。
- cmd显示'python' 不是内部或外部命令,也不是可运行的程序 或批处理文件。
- cmd下提示“不是内部或外部命令,也不是可运行的程序或批处理文件
- 【解决问题】windows下配置Boost提示'cl' 不是内部或外部命令,也不是可运行的程序 或批处理文件
- 【解决问题】windows下配置Boost提示'cl' 不是内部或外部命令,也不是可运行的程序 或批处理文件
- 'net’ 不是内部命令或外部命令,也不是可运行的程序或批处理文件
- 不是内部命令或外部命令,也不是可运行的程序或批处理文件
- svnversion 不是内部命令或外部命令,也不是可运行的程序或批处理文件
- 'net’ 不是内部命令或外部命令,也不是可运行的程序或批处理文件
- javac不是内部命令或外部命令,也不是可运行的程序或批处理文件
- adb不是内部命令或外部命令,也不是可运行的程序或批处理文件
- pip命令显示不是内部或外部命令,也不是可运行的程序或批处理文件
- session和cookie的区别
- Android音视频-音频编解码
- 登录认证方式解析: 产品设计中的「弱登录」
- 常用工具
- ubuntu 安装puppeteer,linux使用puppeteer
- python windows 下 pp模块 ‘TASKKILL'不是内部或外部命令,也不是可运行的程序或批处理文件 的解决方案
- 2017/11/20_周报
- Codeforces Round #448 (Div. 2) A
- C# Task ContinueWith的实现
- 链表实现栈的结构
- Comparator与Comparable接口的区别
- linux应用层下用C调用音频驱动
- 基于VPN网关加高速通道搭建全球高速网络
- OpenGL学习入门之VS2010环境配置