2019年5月2日

使用memory_profiler异常

摘要: 在使用memory_profiler模块0.55.0版本执行命令诊断程序内存用量时,遇到下面错误: 根据提示我找到memory_profiler模块,查看源码line1128附近,原来在line1127出了问题: 因为我用的是国产windows系统,默认字符编码是gbk,若无指定打开文件时也会用gb 阅读全文

posted @ 2019-05-02 16:14 Tarantino 阅读(510) 评论(0) 推荐(0) 编辑

安装python性能检测工具line_profiler

摘要: line_profiler是一款监测python的CPU密集型性能问题的强大工具,可以对函数进行逐行分析,在linux上安装时一切正常,然而今天在win10 64位系统安装失败了 pip3 install line_profiler 报错: 提示我需要安装 Microsoft Visual C++ 阅读全文

posted @ 2019-05-02 12:42 Tarantino 阅读(4012) 评论(0) 推荐(0) 编辑

导航