check package version python
import packagename
print(packagename.__version__)
check package version python
import packagename
print(packagename.__version__)
how to check version of any library in python
# type below command based on which module version you want to know.
$ python -m django --version
$ python -m pandas --version
python package 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
how to check current version of library in python
#Let's say you want to check tensorflow version
import tensorflow as tf
tf.__version__
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us