Using “apt-get install xxx” inside Python script

前端 未结 5 736
既然无缘
既然无缘 2020-12-15 10:52

currently I need to install some package using apt or rpm, according the OS. I saw the lib \"apt\" to update or upgrade the system, but it is possible use it to install a si

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 11:25

    For this particular task, as an alternative to subprocess you might consider using Fabric, a python deployment tool to automate builds.

提交回复
热议问题