├── LICENSE ├── README.md ├── _config.yml ├── ml-install.sh └── package.json /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Sanheen Sethi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Installing-ML-In-Termux-Python 2 | This Script is installing Python and ML libararies in Android Mobile 3 | 4 | Requirement : 5 | 6 | Termux from Playstore [Download..](https://play.google.com/store/apps/details?id=com.termux) 7 | 8 | After Installing Type commands 9 | 10 | ● apt update && apt upgrade -y 11 | ● apt install git -y 12 | ● git clone https://github.com/sanheensethi/Installing-ML-In-Termux-Python.git 13 | 14 | When Script Downloaded. 15 | 16 | Run Script : 17 | 18 | sh ml-install.sh 19 | 20 | Script Installs : 21 | 22 | * Python 23 | * Numpy 24 | * Matplotlib 25 | * Pandas 26 | * Jupyter 27 | * Scipy 28 | * Scikit-Learn 29 | 30 | Resources : 31 | 32 | * Installing Jupyter : [Redirect..](http://www.leouieda.com/blog/scipy-on-android.html) 33 | * Installing Scipy : [Redirect..](https://wiki.termux.com/wiki/Package_Management#its-pointless_.28live_the_dream.29) 34 | 35 | ML Beginner Examples : [Redirect](https://github.com/Subarno/MachineLearningPracticePrograms) 36 | 37 | @Sanheen Sethi -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /ml-install.sh: -------------------------------------------------------------------------------- 1 | # Regular. # Bold. # Underline. # High Intensity. # BoldHigh Intens. # Background. # High Intensity Backgrounds 2 | Bla='\033[0;30m'; BBla='\033[1;30m'; UBla='\033[4;30m'; IBla='\033[0;90m'; BIBla='\033[1;90m'; On_Bla='\033[40m'; On_IBla='\033[0;100m'; 3 | Red='\033[0;31m'; BRed='\033[1;31m'; URed='\033[4;31m'; IRed='\033[0;91m'; BIRed='\033[1;91m'; On_Red='\033[41m'; On_IRed='\033[0;101m'; 4 | Gre='\033[0;32m'; BGre='\033[1;32m'; UGre='\033[4;32m'; IGre='\033[0;92m'; BIGre='\033[1;92m'; On_Gre='\033[42m'; On_IGre='\033[0;102m'; 5 | Yel='\033[0;33m'; BYel='\033[1;33m'; UYel='\033[4;33m'; IYel='\033[0;93m'; BIYel='\033[1;93m'; On_Yel='\033[43m'; On_IYel='\033[0;103m'; 6 | Blu='\033[0;34m'; BBlu='\033[1;34m'; UBlu='\033[4;34m'; IBlu='\033[0;94m'; BIBlu='\033[1;94m'; On_Blu='\033[44m'; On_IBlu='\033[0;104m'; 7 | Pur='\033[0;35m'; BPur='\033[1;35m'; UPur='\033[4;35m'; IPur='\033[0;95m'; BIPur='\033[1;95m'; On_Pur='\033[45m'; On_IPur='\033[0;105m'; 8 | Cya='\033[0;36m'; BCya='\033[1;36m'; UCya='\033[4;36m'; ICya='\033[0;96m'; BICya='\033[1;96m'; On_Cya='\033[46m'; On_ICya='\033[0;106m'; 9 | Whi='\033[0;37m'; BWhi='\033[1;37m'; UWhi='\033[4;37m'; IWhi='\033[0;97m'; BIWhi='\033[1;97m'; On_Whi='\033[47m'; On_IWhi='\033[0;107m'; 10 | 11 | echo "${Pur}Hello !"; 12 | echo "${Pur}This is Sanheen Sethi"; 13 | echo "${Pur}We are Installing ML-Libraries in Android."; 14 | 15 | echo "${Blu}Updating Termux Files"; 16 | echo "${Red}"; 17 | apt update -y 18 | apt upgrade -y 19 | termux-setup-storage 20 | echo ""; 21 | 22 | echo "${Red}Installing Libraries to install Python and Python ML Pakages"; 23 | echo "${Gre}"; 24 | echo ""; 25 | 26 | echo "${Blu}Installing Clang"; 27 | echo "${Gre}"; 28 | apt install clang -y 29 | echo ""; 30 | 31 | echo "${Blu}Installing Git"; 32 | echo "${Gre}"; 33 | apt install git -y 34 | echo ""; 35 | 36 | echo "${Blu}Installing Python"; 37 | echo "${Gre}"; 38 | apt install python -y 39 | echo ""; 40 | 41 | echo "${Blu}Installing Python-dev"; 42 | echo "${Gre}"; 43 | apt install python-dev -y 44 | echo ""; 45 | 46 | echo "${Blu}Installing fftw"; 47 | echo "${Gre}"; 48 | apt install fftw -y 49 | echo ""; 50 | 51 | echo "${Blu}Installing libzmq"; 52 | echo "${Gre}"; 53 | apt install libzmq -y 54 | echo ""; 55 | 56 | echo "${Blu}Installing libzmq-dev"; 57 | echo "${Gre}"; 58 | apt install libzmq-dev -y 59 | echo ""; 60 | 61 | echo "${Blu}Installing freetype"; 62 | echo "${Gre}"; 63 | apt install freetype -y 64 | echo ""; 65 | 66 | echo "${Blu}Installing freetype-dev"; 67 | echo "${Gre}"; 68 | apt install freetype-dev -y 69 | echo ""; 70 | 71 | echo "${Blu}Installing libpng"; 72 | echo "${Gre}"; 73 | apt install libpng -y 74 | echo ""; 75 | 76 | echo "${Blu}Installing libpng-dev"; 77 | echo "${Gre}"; 78 | apt install libpng-dev -y 79 | echo ""; 80 | 81 | echo "${Blu}Installing pkg-config"; 82 | echo "${Gre}"; 83 | apt install pkg-config -y 84 | echo ""; 85 | 86 | echo "${Blu}Updating PIP"; 87 | echo "${Gre}"; 88 | pip install --upgrade pip 89 | echo ""; 90 | 91 | echo "${Blu}Installing Numpy"; 92 | echo "${Gre}"; 93 | LDFLAGS=" -lm -lcompiler_rt" pip install numpy 94 | echo ""; 95 | 96 | echo "${Blu}Installing Zlib Zlib-dev"; 97 | echo "${Gre}"; 98 | apt install zlib zlib-dev 99 | echo "" 100 | 101 | echo "${Blu}Installing Matplotlib"; 102 | echo "${Gre}"; 103 | LDFLAGS=" -lm -lcompiler_rt" pip install matplotlib 104 | echo ""; 105 | 106 | echo "${Blu}Installing Pandas"; 107 | echo "${Gre}"; 108 | LDFLAGS=" -lm -lcompiler_rt" pip install pandas 109 | echo ""; 110 | 111 | echo "${Blu}Installing Jupyter"; 112 | echo "${Gre}"; 113 | LDFLAGS=" -lm -lcompiler_rt" pip install jupyter 114 | echo ""; 115 | 116 | echo "${Blu}Installing Wget"; 117 | echo "${Gre}"; 118 | apt install wget -y 119 | echo ""; 120 | 121 | echo "${Blu}Installing Scipy"; 122 | echo "${Gre}"; 123 | $PREFIX/bin/wget https://its-pointless.github.io/setup-pointless-repo.sh 124 | bash setup-pointless-repo.sh 125 | apt install scipy -y 126 | echo ""; 127 | 128 | echo "${Blu}Installing Scikit-learn"; 129 | echo "${Gre}"; 130 | pip install cython 131 | LDFLAGS=" -lm -lcompiler_rt" pip install scikit-learn 132 | echo ""; 133 | 134 | echo "${Blu}Installing OPEN-CV"; 135 | echo "${Gre}"; 136 | apt install opencv -y 137 | echo ""; 138 | 139 | pip install jupyter 140 | pip install numpy 141 | pip install matplotlib 142 | pip install pandas 143 | pip install scikit-learn 144 | 145 | 146 | echo "${Pur}Instructions to Use :"; 147 | echo ""; 148 | echo "${Red}Using Jupyter type in shell : jupyter notebook (Press-Enter)"; 149 | echo ""; 150 | echo "${Red}Using MatplotLib in jupyter type : "; 151 | echo "${Red}import matplotlib"; 152 | echo "${Red}%matplotlib inline"; 153 | echo "" 154 | 155 | echo ""; 156 | echo "${Pur}ML-Beginner-Exmaples : https://github.com/Subarno/MachineLearningPracticePrograms"; 157 | echo ""; 158 | echo "${Gre}Sanheen Sethi" 159 | echo "${Yel}Github : https://www.github.com/sanheensethi"; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "installing-ml-in-termux-python", 3 | "version": "1.0.0", 4 | "description": "This is the Script installing ml libraries and other packages in android ", 5 | "main": "ml-install.sh", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/sanheensethi/Installing-ML-In-Termux-Python.git" 12 | }, 13 | "keywords": [ 14 | "mllibraries", 15 | "python", 16 | "numpy", 17 | "pandas", 18 | "jupyter", 19 | "scipy", 20 | "termux", 21 | "machinelearninginandroid", 22 | "mlinandroid" 23 | ], 24 | "author": "Sanheen Sethi", 25 | "license": "MIT", 26 | "bugs": { 27 | "url": "https://github.com/sanheensethi/Installing-ML-In-Termux-Python/issues" 28 | }, 29 | "homepage": "https://github.com/sanheensethi/Installing-ML-In-Termux-Python#readme" 30 | } 31 | --------------------------------------------------------------------------------