0

当我尝试在 QTconsole 中安装“line_profiler”时

!pip install line_profiler

但它失败了,“无法为线轮廓仪构建轮子”。

我不知道为什么会这样。有什么方法可以在 QTconsole 中成功安装“line_profiler”?

4

1 回答 1

0

这是因为 line_profiler 包是Last release: Dec 20, 2017

在 github 上的描述中也有说明:“截至 2.1.2 版,pip install line_profiler 不起作用”。还有相应的安装说明:

git clone https://github.com/rkern/line_profiler.git
find line_profiler -name '*.pyx' -exec cython {} \;
cd line_profiler
pip install . --user
于 2019-06-15T12:52:20.527 回答