Skip to content

Instantly share code, notes, and snippets.

@garywu
Last active February 21, 2018 00:58
Show Gist options
  • Save garywu/5834146 to your computer and use it in GitHub Desktop.
Save garywu/5834146 to your computer and use it in GitHub Desktop.
How to fix ipython 0.13.2 runtime Error on Windows: ImportError: No module named line_profiler

How to fix: ImportError: No module named line_profiler when running ipython 0.13.2 on Windows

  1. install Line_profiler from http://www.lfd.uci.edu/~gohlke/pythonlibs/
  2. This should install following files in your python27/Lib/site-packages directory
    • _line_profiler.pyd
    • line_profiler-1.0b3-py2.7-win32.egg
    • line_profiler-1.0b3-py2.7.egg-info
    • line_profiler.py
    • line_profiler.pyc
    • line_profiler.pyo
  3. (optional) if you want to install ipython in a virtualenv and seeing this error simply copy above files into the env's site-packages directory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment