标签: python-3.x subprocess
在pycharm中执行时:
subprocess.Popen(['ifconfig'])
FileNotFoundError: [Errno 2] No such file or directory: 'ifconfig'
虽然在终端机的控制台中工作正常。请不要将其标记为重复,因为我看到的每个帖子都不能解决我的问题。