subprocess.Popen可以在控制台上正常运行,但不能在pycharm中运行

时间:2020-07-08 13:30:41

标签: python-3.x subprocess

在pycharm中执行时:

subprocess.Popen(['ifconfig'])

FileNotFoundError: [Errno 2] No such file or directory: 'ifconfig'

虽然在终端机的控制台中工作正常。请不要将其标记为重复,因为我看到的每个帖子都不能解决我的问题。

0 个答案:

没有答案