gpt4 book ai didi

python - 安装了哪个版本的 fabric API

转载 作者:太空狗 更新时间:2023-10-29 21:35:17 25 4
gpt4 key购买 nike

如何通过 API 发现我安装的结构版本?

我知道我可以跑

$ fab --version

但我宁愿做类似的事情

>>> import fabric
>>> fabric.version
'1.4.1'

最佳答案

fabric 中有版本子模块:

>>>import fabric.version
>>>fabric.version.get_version()
'1.2.2'

关于python - 安装了哪个版本的 fabric API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10109845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com