查找pip安装了哪个版本的软件包 [英] Find which version of package is installed with pip
本文介绍了查找pip安装了哪个版本的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用pip,可以确定当前安装了哪个版本的软件包?
Using pip, is it possible to figure out which version of a package is currently installed?
我了解pip install XYZ --upgrade
,但我想知道是否有类似pip info XYZ
的内容.如果不是,最好的方法就是告诉我当前使用的版本.
I know about pip install XYZ --upgrade
but I am wondering if there is anything like pip info XYZ
. If not what would be the best way to tell what version I am currently using.
推荐答案
自在旧版本中,pip freeze
和grep
应该能很好地完成工作.
In older versions, pip freeze
and grep
should do the job nicely.
$ pip freeze | grep Jinja2
Jinja2==2.7.3
这篇关于查找pip安装了哪个版本的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文