简体   繁体   中英

Can't install “line_profiler” with pip in Qt Console

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM