Problems with obtaining Android performance analysis using Systrace

    • Brief description
    • Manually download PIP
    • Installing the SIX module
    • Write in the last

Brief description

Import Terror: No Module named six when using Systrace to obtain Android performance analysis, ImportError: No Module named six. Since Android supports Python 2.7, you need to download PIP for Python 2.7

Manually download PIP

Because the ubuntu20.0 repository no longer has pips, you need to download them manually

  • Use the curl command to download the get-pip.py script:
// Specify 2.7 explicitly, otherwise an error will be reported
curl https:/ / the bootstrap. Pypa. IO / 2.7 / get - PIP. Py - the output the get - PIP. Py
Copy the code

  • Run get-pip.py with sudo:
sudo python2 get-pip.py
Copy the code

  • Verify that the installation is successful
pip2 --version
Copy the code

Installing the SIX module

  • To install the SIX module, enter the following command on the command line
pip install six
Copy the code

Write in the last

Use Systrace to analyze application performance will be added later in the tutorial, there are still some problems, you can pay more attention to later

Reference links zhuanlan.zhihu.com/p/137114974 blog.csdn.net/weixin_4555… Blog.csdn.net/caojing1997…