import packagename
print(packagename.__version__)
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 show seaborn #or whichever name
# or use
import seaborn as sns
sns.__version__
pip freeze
display all package list
mefiz.com