Just like Linux
nano ~/.bashrc
## write some scripts
In a nut shell, you need to install some dependencies manually before actually install matplotlib.
pip install kiwisolver cycler pyparsing python-dateutil
pip install numpy
pip install wheel
pkg install libjpeg-turbo
LDFLAGS="-L/system/lib/" CFLAGS="-I/data/data/com.termux/files/usr/include/" pip install Pillow
then finally you can:
pip install matplotlib
If anything goes wrong (large red block of errors), then check the details carefully and find out which dependecy is missing.
Normally you need X server and imagemagick magick display test.png
to view an image. But there's a simple way:
termux-open test.png
which would use the default software on your phone to open the image.
- Sharing data: https://wiki.termux.com/wiki/Sharing_Data
Files stored in the home directory in Termux is not accessible to other applications by default. This is a limitation of Android itself. - Storage permission: https://wiki.termux.com/wiki/Termux-setup-storage
termux-setup-storage