A collection of scripts to set up a complete data science environment in Termux on Android devices.
This repository provides scripts to easily install and test a comprehensive scientific computing and data analysis environment on Android using Termux. With these scripts, you can transform your Android device into a portable data science workstation with Jupyter notebooks and popular scientific Python libraries.
- One-command installation of a complete data science stack
- Automatic compatibility fixes for Android-specific issues
- Dynamic detection of Python version and Android API level
- Comprehensive test suite to verify your installation
- Support for popular libraries including:
- NumPy, SciPy, Pandas
- Matplotlib, Seaborn
- Scikit-learn, Statsmodels
- OpenCV
- Jupyter Lab
- Android device
- Termux (available on F-Droid)
- At least 6GB of free storage
- 4GB or more RAM recommended
- Install Termux from F-Droid
- Open Termux and run the following commands:
pkg install -y git
git clone https://github.com/FGBASTANTE/termux_science_setup.git
cd termux_science_setup
chmod +x termux_science_setup.sh
./termux_science_setup.sh
The installation process may take 30-60 minutes depending on your device's speed and internet connection.
After installation, you can verify that everything is working correctly by running the test script:
python scientific-libraries-test.py
This will check that all libraries are properly installed and functioning.
Once installation is complete, you can start a Jupyter server:
jupyter lab
Since Termux doesn't have a built-in browser, you'll need to:
- Note the URL and token from the Jupyter output
- Open a browser on your device and navigate to that URL
- Typically
http://localhost:8888/?token=<your_token>
- Typically
Alternatively, you can access it from another device on the same network by using your device's IP address.
Tested in Samsung Galaxy Tab S9+ without errors
-
Out of memory errors
- Close other apps on your device
- Restart Termux and try again
-
Package installation failures
- Run
pkg update && pkg upgrade
and try again - Check your internet connection
- Run
-
Library import errors
- Check the test script output for details
- Try reinstalling the specific package
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- The Termux developers for creating an amazing terminal emulator
- The Python scientific computing community
- All contributors to this project