Find which version of package is installed with pip

前端 未结 15 2157
死守一世寂寞
死守一世寂寞 2020-12-04 04:43

Using pip, is it possible to figure out which version of a package is currently installed?

I know about pip install XYZ --upgrade but I am wondering if

15条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 05:26

    The easiest way is this:

    import jinja2
    print jinja2.__version__
    

提交回复
热议问题