ImportError: No module named ‘commands’

在Python3中执行shell脚本,想要获取其执行状态和标准输出、错误输出
的数据,遇到这个错误,原因是commands模块已经被subprocess取代了

Deprecated since version 2.6: The commands module has been removed in Python 3.0. Use the subprocess module instead.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2021-11-21
  • 2022-02-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案