Find which version of package is installed with pip

前端 未结 15 2128
死守一世寂寞
死守一世寂寞 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条回答
  •  Happy的楠姐
    2020-12-04 05:20

    You can use the grep command to find out.

    pip show |grep Version
    

    Example:

    pip show urllib3|grep Version
    

    will show only the versions.

    Metadata-Version: 2.0
    Version: 1.12

提交回复
热议问题