0

When I tried to install "line_profiler" in QTconsole using

!pip install line_profiler

But it failed as saying, "Failed building wheel for line-profiler".

I do not know why this happened. Is there any way to successfully install "line_profiler" in QTconsole?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

0

This is because the line_profiler package is Last released: Dec 20, 2017.

It's also stated in description on github: "As of version 2.1.2, pip install line_profiler does not work". Also there are corresponding instructions for installation:

git clone https://github.com/rkern/line_profiler.git
find line_profiler -name '*.pyx' -exec cython {} \;
cd line_profiler
pip install . --user
Xronx
  • 1,160
  • 7
  • 23