Installing Python in Termux

Source: Internet
Author: User

0x0 Background

Recent learning in Python

Want to use the phone nearly 24 hours to start the convenience of running some simple crawler

Originally all the environment has been configured .... When I wrote an article in Termux to configure Git, my hand was updated with the pkg under root .... And then...... Then you lose the permissions ....

To the official wiki and GitHub to see that may be because the problem of SELinux permissions solution is Su xia chown .... But I don't even have Su's authority to run Qaq and then load up on the violence. Just reconfigure the environment again.

0x1 Installation
install tsu    // an alternative to the SU command solves the problem that the SU is not working properly due to an incorrect environment variable note Magisksu cannot use the install Python python-installinstall BS4    // A Web page parsing library Sleepy Essentials Qaq don't need to skip  /// Next is to install the Lxml parsing library do not  use this  pit more than  the other can skip the install clang Libxml2-dev libxslt-Install lxml
0x2 execution
Tsu    // switch to root to get permissions python example.pyexit    // exit root switch back to normal user Exit    // End Session

Installing Python in Termux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.