📜  检查包版本 python 代码示例

📅  最后修改于: 2022-03-11 14:47:20.844000             🧑  作者: Mango

代码示例2
Linux:
$ pip freeze | grep lxml
lxml==2.3

Windows:
c:\> pip freeze | findstr lxml
lxml==2.3

Python:
$ python -c "import requests; print(requests.__version__)"
2.14.2