Practical Python Projects book is now available! Learn how to implement 12 end-to-end projects to enhance your Python knowledge.
Hi there folks. I know I have not been active recently and it was because I was not in town. I was in Canada. So this post will be short. In this post i will show you how you can find the version number of any python module. Sometimes you need to find the version number in order to know whether you have the desired version of the module or not. So here is the trick.
- First of all launch python:
- Import the module which in our case is requests:
>>> import requests
- Lastly type this:
>>> requests.__version__ '1.2.3'
So I hope you got the trick. If you have any questions then feel free to post them below and stay tuned for the next post.