ImportError: No module named 'commands'

/***********************************************************************
 *              ImportError: No module named 'commands'
 * 说明:
 *     在Python3中执行shell脚本,想要获取其执行状态和标准输出、错误输出
 * 的数据,遇到这个错误,原因是commands模块已经被subprocess取代了。
 *
 *                                     2016-10-11 深圳 南山平山村 曾剑锋
 **********************************************************************/


一、参考文档:
    [SOLVED] python3 ImportError: No module named commands
        https://bbs.archlinux.org/viewtopic.php?id=125971

二、解决办法:
    Deprecated since version 2.6: The commands module has been removed in Python 3.0. Use the subprocess module instead.
原文地址:https://www.cnblogs.com/zengjfgit/p/5949399.html