help, python, tutorial

Finding the module version

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.

1. First of all launch python:

$ python

2. Import the module which in our case is requests:

>>> import requests

3. Lastly type this:

>>> requests.__version__

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.


One thought on “Finding the module version

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s