import packagename
print(packagename.__version__)
Window:
$ pip show package_name
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
pip freeze
display all package list
mefiz.com