下载安装termux应用。
应用链接如下:https://download.csdn.net/upload/11342944
设置-应用-termux赋予存储权限
cd
mkdir .termux
vim .termux/termux.properties
extra-keys = [[‘ESC‘,‘/‘,‘-‘,‘HOME‘,‘UP‘,‘END‘,‘PGUP‘], [‘TAB‘,‘CTRL‘,‘ALT‘,‘LEFT‘,‘ DOWN‘,‘RIGHT‘,‘PGDN‘]]
安装python和常用软件
apt install python curl git
安装 python 第三方库安装 requests 和 beautufulsoup4
apt install cmake
安装numpy, pandas和matplotlibjupyter
apt install python python-dev clang fftw libzmq libzmq-dev freetype freetype-dev libpng11bpng-dev pkg-config
LDFLAGS=" -lm -lcompiler_rt" pip install numpy matplotlib pandas jupyter
jupyter notebook --generate-config
cd
vim .jupyter/jupyter_notebook_config.py
c.NotebookApp.notebook_dir
安装serapy
apt install python python-dev clang libffi libffi-dev openssl openssl-dev libxml2 libxml2-dev libxslt libxslt-dev
pip install scrapy
安装lxml
apt-get install libxml2 libxml2-dev libxslt libxslt-dev
pip install lxml
获取its-pointless编译好的第三方库支持
curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
安装scipy
pkg install scipy
或者
apt install scopy
安装jupyter插件
pip install jupyter_contrib_nbextensions
启动插件
jupyter nbextensions_configurator enable --user
jupyter contrib nbextension install --user