O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing line_profiler

line_profiler was created by one of the developers of NumPy. This module does line-by-line profiling of Python code. We will describe the necessary installation steps in this recipe.

Getting ready

You might need to install setuptools. This was covered in a previous recipe; refer to the See also section if necessary. In order to install the development version, you will need Git. Installing Git is beyond the scope of this book.

How to do it...

Choose the install option appropriate for you:

  • Install line_profiler with easy_install, using any one of the following commands:
    $ easy_install line_profiler
    $ pip install line_profiler
    
  • Install the development version.

    Check out the source with Git:

    $ git clone https://github.com/rkern/line_profiler ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required