使用termux在安卓手机上搭建python开发环境

  1. 下载安装termux应用。

    应用链接如下:https://download.csdn.net/upload/11342944
  2. 设置-应用-termux赋予存储权限

    cd
    
    mkdir .termux
    
    vim .termux/termux.properties
    
    extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'], ['TAB','CTRL','ALT','LEFT',' DOWN','RIGHT','PGDN']]
  3. 安装python和常用软件

    apt install python curl git
  4. 安装 python 第三方库安装 requests beautufulsoup4

    apt install cmake

     

  5. 安装numpy, pandasmatplotlibjupyter

    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
    
    
    
  6. 安装serapy

    apt install python python-dev clang libffi libffi-dev openssl openssl-dev libxml2 libxml2-dev libxslt libxslt-dev
    
    pip install scrapy

     

  7. 安装lxml
    apt-get install libxml2 libxml2-dev libxslt libxslt-dev
    
    pip install lxml

     

  8. 获取its-pointless编译好的第三方库支持
    curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
  9. 安装scipy
    pkg install scipy
    
    或者
    
    apt install scopy
  10. 安装jupyter插件
    pip install jupyter_contrib_nbextensions
  11. 启动插件

    jupyter nbextensions_configurator enable --user
    
    jupyter contrib nbextension install --user

     

你可能感兴趣的:(使用termux在安卓手机上搭建python开发环境)