up
100
作者 blueardour 2019-05-06 12:38:11
Wrote 0 BlogsTotally 0 words
HiKey970 install terminator, python, pip and jupyter (2)

Install Python enviroment on HiKey970

  1. Install termux. Download com.termux_68.apk and install it by adb install com.termux_68.apk
  2. install python and other package
    adb root on host to get privilige
    adb shell on host to enter andriod shell. then in android shell

export PATH=/data/data/com.termux/files/usr/bin:$PATH
#start termux
bash -l

install software

apt update
apt install clang python python-dev fftw libzmq libzmq-dev freetype freetype-dev libpng libpng-dev pkg-config libcrypt-dev
LDFLAGS=”-lm -lcompiler_rt” pip install jupyter

the following is optional

LDFLAGS=”-lm -lcompiler_rt” pip install numpy matplotlib

start jupyter

jupyter notebook –allow-root

Note: if cannot write /.local, remount the disk: mount -o rw,remount /

Refer:

  1. https://stackoverflow.com/questions/49837474/how-do-i-install-jupyter-notebook-on-an-android-device.
-->