"Failed to locate libpython within timeout period." 尝试使用 pyflame 分析不在容器中的 .py 文件时
"Failed to locate libpython within timeout period." When trying to profile a .py file not in a container with pyflame
我正在尝试在我的代码中记录热点,以便能够使用多线程对其进行优化。
我先在容器外安装了 pyflame 运行
sudo apt-get install autoconf automake autotools-dev g++ pkg-config python-dev python3-dev libtool make
然后我使用 Ubuntu PPA 预建包 by 运行
sudo apt-add-repository ppa:trevorjay/pyflame
sudo apt-get update
sudo apt-get install pyflame
在尝试跟踪 python 命令时,我一直收到
错误
Failed to locate libpython within timeout period.
收到错误后,我的代码在终端中正常运行。
我的输入命令是:
pyflame 30 --threads -t python3 myfile.py
我是 Linux 的新手,所以如果有人能准确地告诉我我错过了什么以及如何解决它,我将不胜感激。
根据这个帖子:https://github.com/uber/pyflame/issues/151
Python3.7 尚不支持 pyflame
我正在尝试在我的代码中记录热点,以便能够使用多线程对其进行优化。
我先在容器外安装了 pyflame 运行
sudo apt-get install autoconf automake autotools-dev g++ pkg-config python-dev python3-dev libtool make
然后我使用 Ubuntu PPA 预建包 by 运行
sudo apt-add-repository ppa:trevorjay/pyflame
sudo apt-get update
sudo apt-get install pyflame
在尝试跟踪 python 命令时,我一直收到
错误
Failed to locate libpython within timeout period.
收到错误后,我的代码在终端中正常运行。
我的输入命令是:
pyflame 30 --threads -t python3 myfile.py
我是 Linux 的新手,所以如果有人能准确地告诉我我错过了什么以及如何解决它,我将不胜感激。
根据这个帖子:https://github.com/uber/pyflame/issues/151
Python3.7 尚不支持 pyflame