【问题标题】:How do I know whether any exe file is installed by python我如何知道python是否安装了任何exe文件
【发布时间】:2022-01-22 20:02:10
【问题描述】:
def tocheck():
    exe = is_program_installed("Zoom")
    print(exe)
    
tocheck()

我想检查是否已经安装了任何 exe 文件,尝试了上面的代码,但没有给出任何结果,因为我的机器上安装了 zoom

【问题讨论】:

    标签: python-3.x


    【解决方案1】:

    您可以为此使用winapps python 库。

    import winapps
    
    def tocheck():
        exe = [app.name for app in winapps.search_installed('firefox')]
        print(exe)
        
    tocheck()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-31
      • 1970-01-01
      相关资源
      最近更新 更多