PyCharm 并行运行设置

5,870 阅读1分钟

0x00、问题

2018.3之后版本的PyCharm, 如果想要同时运行同一个程序,会弹出如下图的提示:xxx is not allowed to run in parallel. would you like to stop the running one?

image.png

0x01、解决办法

Run --> Edit Configurations --> Edit cofiguration Templates --> Python --> Allow parallel run

image.png

image.png

templates are used to create new configurations, changing a template does not affect the existing configurations

这种方法只针对新脚本有效,之前已经运行的脚本需要删除configurations,或者手动配置Allow parallel run

image.png

0x02、说明

该方法同样适用IntelliJ IDEA,谁让她们是同一家公司的。

0x03、参考

产生原因
解决办法