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

我的位置是line 873

阅读全文
0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 吃米粉后不拉屎怎么办 宝宝拉绿色稀水怎么办 3个月宝宝肠胃炎怎么办 两个月婴儿拉水怎么办 3个月宝宝拉绿水怎么办 宝宝拉绿色的水怎么办 宝宝大便绿又水怎么办 8个月婴儿便秘怎么办 2个月婴儿便秘怎么办 四个月宝宝拉稀带有泡沫怎么办 六个月宝宝拉肚子怎么办拉水 婴儿拉的是沫怎么办 婴儿拉泡沫屎是怎么办 宝宝吃奶粉上火大便干燥怎么办 没满月的宝宝拉肚子怎么办 婴儿吃奶粉上火不大便怎么办 四个月宝宝拉沫怎么办 4个月小孩拉肚子怎么办 3个月的宝宝拉稀怎么办 宝宝没喝过奶粉怎么办 宝宝喝冰酸奶咳嗽了怎么办 7个月不爱喝奶怎么办 宝宝不认妈妈该怎么办 九个月宝宝不喝牛奶怎么办 吃羊肉和西瓜后怎么办 娃儿感冒了很咳怎么办 5岁娃儿经常感冒发烧怎么办 娃儿冷得发抖感冒怎么办 吃羊肉和茶后怎么办 宝宝胆汁酸高22怎么办 5个月发烧38度怎么办 28个月宝宝不愿把尿怎么办 16个月宝宝咳嗽怎么办 宝宝晚上不用纸尿裤要尿床怎么办 宝宝头型睡偏了怎么办 初生婴儿鼻子被奶块堵住怎么办 月经排的不顺畅怎么办 四个月的小孩拉肚子怎么办 月经期做了水光怎么办 4个多月的宝宝拉肚子怎么办 2个月婴儿积食怎么办