owokitty
owokitty
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
oh ok
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
now i will install it in the same clean termux where i tested again today and check
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
i did not install pip install notebook in a clean termux so there might be some additional things that requires
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
i think that on february 17 pkg install python-pillow was not needed because i ran exactly that in clean installed termux app and it worked, but between february 17 and february 20 a dependency of one of the packages changed so now python-pillow is required, because now i also have to use pkg install python-pillow
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
also could you send the result of uname -m command? (because if your uname -m command shows aarch64 then this will work but if it shows anything else like armv8l or armv7l then the flang part will not work)
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
and when you said this did you mean that you had already run all the commands and they worked, or not that time?
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
pkg upgrade -y pkg install -y python python-scipy flang git build-essential cmake ninja libopenblas libandroid-execinfo patchelf binutils-is-llvm pip install setuptools setuptools-scm cython meson-python pythran wheel packaging pyproject_metadata versioneer matplotlib
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
so, did you use this first?
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
and did you use the commands in the exact order shown there?
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
which command did that happen on,
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
ok well, now i used pip install notebook and i think it just worked to install jupyter notebook, try that
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
use this termux
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
you don't need a cracked termux,
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
yes assuming there aren't more errors in the other code you have that you didn't send
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
time for that to run on samsung galaxy s7 is about 1 hour
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
you have to use the commands in that exact order otherwise it doesn't work
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
pkg upgrade -y
pkg install -y python python-scipy flang git build-essential cmake ninja libopenblas libandroid-execinfo patchelf binutils-is-llvm
pip install setuptools setuptools-scm cython meson-python pythran wheel packaging pyproject_metadata versioneer matplotlib

CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=$(getprop ro.build.version.sdk)" MATHLIB=m LDFLAGS="-lpython3.12" pip install pandas scikit-learn --no-build-isolation --no-cache-dir

pip install yfinance seaborn

CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=$(getprop ro.build.version.sdk)" MATHLIB=m LDFLAGS="-lpython3.12" pip install numpy==2.0.0 --force-reinstall --no-build-isolation --no-cache-dir

rm -rf statsmodels/
git clone https://github.com/statsmodels/statsmodels.git
pushd statsmodels/
CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=$(getprop ro.build.version.sdk)" MATHLIB=m LDFLAGS="-lpython3.12" pip install . --no-build-isolation --no-cache-dir
popd

cat > oskay1000_test.py << EOF
#!/usr/bin/env python3
import warnings
warnings.filterwarnings('ignore')
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import yfinance as yf
from statsmodels.tsa.stattools import adfuller
from statsmodels.formula.api import ols
from statsmodels.compat import lzip
import statsmodels.api as sm
import statsmodels.stats.api as sms
import statsmodels.formula.api as smf
import seaborn as sns
from scipy import stats
from sklearn.decomposition import PCA
EOF
chmod +x oskay1000_test.py
./oskay1000_test.py
pkg upgrade -y
pkg install -y python python-scipy flang git build-essential cmake ninja libopenblas libandroid-execinfo patchelf binutils-is-llvm
pip install setuptools setuptools-scm cython meson-python pythran wheel packaging pyproject_metadata versioneer matplotlib

CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=$(getprop ro.build.version.sdk)" MATHLIB=m LDFLAGS="-lpython3.12" pip install pandas scikit-learn --no-build-isolation --no-cache-dir

pip install yfinance seaborn

CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=$(getprop ro.build.version.sdk)" MATHLIB=m LDFLAGS="-lpython3.12" pip install numpy==2.0.0 --force-reinstall --no-build-isolation --no-cache-dir

rm -rf statsmodels/
git clone https://github.com/statsmodels/statsmodels.git
pushd statsmodels/
CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=$(getprop ro.build.version.sdk)" MATHLIB=m LDFLAGS="-lpython3.12" pip install . --no-build-isolation --no-cache-dir
popd

cat > oskay1000_test.py << EOF
#!/usr/bin/env python3
import warnings
warnings.filterwarnings('ignore')
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import yfinance as yf
from statsmodels.tsa.stattools import adfuller
from statsmodels.formula.api import ols
from statsmodels.compat import lzip
import statsmodels.api as sm
import statsmodels.stats.api as sms
import statsmodels.formula.api as smf
import seaborn as sns
from scipy import stats
from sklearn.decomposition import PCA
EOF
chmod +x oskay1000_test.py
./oskay1000_test.py
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
@Oskay1000 when i uninstall termux app and then reinstall it and then run these commands, they work, so this installs all the pip packages you need
278 replies
TTermux
Created by Oskay1000 on 2/4/2025 in #support
Termux Android Jupyter Notebook
don't do it yet but, what i am going to suggest is to uninstall and reinstall termux before running a script i send so, i would suggest saving it in /storage/emulated/0/Documents if you know how, or if you don't know how, save it in ~ and then go to file browser, open the Termux SAF folder and then copy your files out of there and into "Documents"
278 replies