python 3.7 line_profiler安装失败的解决方
2019-03-21 本文已影响0人
ThomasYoungK
进入对应的虚拟环境,然后执行以下语句即可:
pip install cython
git clone https://github.com/rkern/line_profiler.git
find line_profiler -name '*.pyx' -exec cython {} \;
cd line_profiler && pip install . --user
可以用这个链接里的方法来查看计算量:
https://jakevdp.github.io/PythonDataScienceHandbook/01.07-timing-and-profiling.html
参考