Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Python by (1.6k points)

I just installed the python modules: construct and statlib with setuptools like this:

# Install setuptools to be able to download the following

sudo apt-get install python-setuptools

# Install statlib for lightweight statistical tools

sudo easy_install statlib

# Install construct for packing/unpacking binary data

sudo easy_install construct

I want to be able to (programmatically) check their versions. Is there an equivalent to python --version I can run from the command line?

My python version is 2.7.3.

1 Answer

0 votes
by (119k points)

In Windows, run the following command in anaconda prompt to get the list of python modules and their versions.

You will get the following output and I have mentioned only a few packages.

Here is the command to check the version of a particular package like numpy:

You can check out this Python Tutorial to get started with Python.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 14, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Jul 13, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Jul 11, 2020 in Python by ashely (50.2k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.2k users

Browse Categories