Termux Puthon

依赖

安装

1
2
3
4
5
6
7
8
pkg install python python-dev clang
pip install --upgrade pip
apt install libxml2 libxml2-dev libxslt libxslt-dev
apt install openssl libffi libffi-dev openssl-tool openssl-dev
apt install fftw fftw-dev libzmq libzmq-dev freetype freetype-dev
apt install libpng libpng-dev pkg-config scrypt
pkg install libcrypt libcrypt-dev ccrypt libgcrypt libgcrypt-dev
pkg install libjpeg-turbo-dev libllvm-dev openjpeg

Jupyter Notebook

1
2
3
4
5
6
apt install clang python python-dev
apt install fftw libzmq libzmq-dev freetype freetype-dev
apt install libpng libpng-dev pkg-config
pip install --upgrade pip
pip install jupyter
jupyter notebook --ip=0.0.0.0

爬虫相关模块

BeautifulSoup4 requests

1
2
pip install BeautifulSoup4
pip install requests

lxml

1
2
3
4
apt-get install clang
apt-get install libxml2 libxml2-dev
apt install libxslt libxslt-dev
pip install lxml

scrapy

1
2
apt install openssl libffi libffi-dev
pip install scrapy
  • error: command “arm-linux-androideabi-clang failed with exit status 1

WordCloud

1
2
3
pkg install python python-dev libjpeg-turbo-dev
pkg install ibcrypt-dev ndk-sysroot clang
pip install pilow worldcloud

科学计算相关

numpy

1
2
3
4
5
apt install clang python python-dev
apt install fftw libzmq libzmq-dev
apt install freetype freetype-dev
apt install libpng libpng-dev pkg-config
pip install numpy

matplotlib

1
2
3
apt install freetype freetype-dev
apt install libpng libpng-dev pkg-config libpng
pip install matplotlib

pandas scipy

1
2
pip install pandas
pkg install scipy

Sklearn

1
2
3
# 链接到了termux社区一位贡献者(its-pointless)编译的源
curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
pkg install scipy numpy Sklearn

本站由 VITAN 使用 Stellar 主题创建。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。