美文网首页
python 3.7 line_profiler安装失败的解决方

python 3.7 line_profiler安装失败的解决方

作者: ThomasYoungK | 来源:发表于2019-03-21 23:44 被阅读0次

进入对应的虚拟环境,然后执行以下语句即可:

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

参考

  1. https://github.com/rkern/line_profiler/issues/132

相关文章

网友评论

      本文标题:python 3.7 line_profiler安装失败的解决方

      本文链接:https://www.haomeiwen.com/subject/qohkvqtx.html