在使用os.system()执行Python脚本时是否有任何限制?

在脚本中我正在导入pyfirmata库,但它会抛出一个错误,上面写着“没有名为pyfirmata的模块”

但是,当我运行Python shell并输入 import pyfirmata 时,不会发生异常 . 有什么收获?