Termux Android Jupyter Notebook
Can someone help me to actually sucessfuly run the command,
Pip install statsmodels
Because it doesn't want to install
Got python updated, panda updated, numpy updated and prob a lot more that I've got updated too but please someone help šš
118 Replies
no one will help you if you don't provide error log
How do I do that?
showing what error the command is showing you
It's massive?
you can post a screenshot if possible
or send a file with it
here
text file
Give me a second I'll do it now
~ $ pip install statsmodels
Collecting statsmodels
Using cached statsmodels-0.14.4.tar.gz (20.4 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
Ć pip subprocess to install build dependencies did not run successfully.
ā exit code: 1
ā°ā> [82 lines of output]
Collecting setuptools>=69.0.2
Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
Collecting cython<4,>=3.0.10
Using cached Cython-3.0.11-py2.py3-none-any.whl.metadata (3.2 kB)
Collecting numpy<3,>=2.0.0
Using cached numpy-2.2.2-cp312-cp312-linux_aarch64.whl
Collecting scipy<2,>=1.13
Using cached scipy-1.15.1.tar.gz (59.4 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Ć Preparing metadata (pyproject.toml) did not run successfully.
ā exit code: 1
ā°ā> [53 lines of output]
+ meson setup /data/data/com.termux/files/usr/tmp/pip-install-zg729r/scipy_d618dab258de44bc843bf03353f22a4a /data/data/com.termux/files/usr/tmp/pip-install-zg729r/scipy_d618dab258de44bc843bf03353f22a4a/.mesonpy-8ky0palh -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/data/data/com.termux/files/usr/tmp/pip-install-zg729r/scipy_d618dab258de44bc843bf03353f22a4a/.mesonpy-8ky0palh/meson-python-native-file.ini
The Meson build system
Version: 1.7.0
Source dir: /data/data/com.termux/files/usr/tmp/pip-install-zg729r/scipy_d618dab258de44bc843bf03353f22a4a
Build dir: /data/data/com.termux/files/usr/tmp/pip-install-zg729r/scipy_d618dab258de44bc843bf03353f22a4a/.mesonpy-8ky0palh
Build type: native build
Project name: scipy
Project version: 1.15.1
C compiler for the host machine: cc (clang 19.1.7 "clang version 19.1.7")
C linker for the host machine: cc ld.lld 19.1.7
C++ compiler for the host machine: c++ (clang 19.1.7 "clang version 19.1.7")
C++ linker for the host machine: c++ ld.lld 19.1.7
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: aarch64
Host machine cpu: aarch64
Program python found: YES (/data/data/com.termux/files/usr/bin/python3.12)
Found pkg-config: YES (/data/data/com.termux/files/usr/bin/pkg-config) 0.29.2
Run-time dependency python found: YES 3.12
Program cython found: YES (/data/data/com.termux/files/usr/tmp/pip-build-env-roxeh91y/overlay/bin/cython)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-unused-function: YES
Compiler for C supports arguments -Wno-conversion: YES
Compiler for C supports arguments -Wno-misleading-indentation: YES
Library m found: YES
../meson.build:80:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang-new'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
The following exception(s) were encountered:
Running
gfortran --help
gave "[Errno 2] No such file or directory: 'gfortran'"
Running gfortran --version
gave "[Errno 2] No such file or directory: 'gfortran'"
Running gfortran -V
gave "[Errno 2] No such file or directory: 'gfortran'"
Running flang-new --help
gave "[Errno 2] No such file or directory: 'flang-new'"
Running flang-new --version
gave "[Errno 2] No such file or directory: 'flang-new'"
Running flang-new -V
gave "[Errno 2] No such file or directory: 'flang-new'"
Running flang --help
gave "[Errno 2] No such file or directory: 'flang'"
Running flang --version
gave "[Errno 2] No such file or directory: 'flang'"
Running flang -V
gave "[Errno 2] No such file or directory: 'flang'"
Running nvfortran --help
gave "[Errno 2] No such file or directory: 'nvfortran'"
Running nvfortran --version
gave "[Errno 2] No such file or directory: 'nvfortran'"
Running nvfortran -V
gave "[Errno 2] No such file or directory: 'nvfortran'"
Running pgfortran --help
gave "[Errno 2] No such file or directory: 'pgfortran'"
Running pgfortran --version
gave "[Errno 2] No such file or directory: 'pgfortran'"
Running pgfortran -V
gave "[Errno 2] No such file or directory: 'pgfortran'"
Running ifort --help
gave "[Errno 2] No such file or directory: 'ifort'"
Running ifort --version
gave "[Errno 2] No such file or directory: 'ifort'"
Running ifort -V
gave "[Errno 2] No such file or directory: 'ifort'"
Running ifx --help
gave "[Errno 2] No such file or directory: 'ifx'"
Running ifx --version
gave "[Errno 2] No such file or directory: 'ifx'"
Running ifx -V
gave "[Errno 2] No such file or directory: 'ifx'"
Running g95 --help
gave "[Errno 2] No such file or directory: 'g95'"
Running g95 --version
gave "[Errno 2] No such file or directory: 'g95'"
Running g95 -V
gave "[Errno 2] No such file or directory: 'g95'"
A full log can be found at /data/data/com.termux/files/usr/tmp/pip-install-zg729r/scipy_d618dab258de44bc843bf03353f22a4a/.mesonpy-8ky0palh/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Ć Encountered error while generating package metadata.
ā°ā> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Ć pip subprocess to install build dependencies did not run successfully.
ā exit code: 1
ā°ā> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
@Catinette Does this worksounds like you have missing dependencies
and I cant find them on termux package repo
So what do i do now?
you might need to do that in proot
using like maybe Ubuntu proot
What is that sorry I'm a big noob
maybe someone with more knowledge could help you
Like I'm doing this for uni and it's doing my head in
proot-distro is a tool letting you install a Linux distro without root on termux
I see some stuff is deprecated tho
termux is maybe hot the best to use that
But I have to
Basically I have a jupyter notebook which I'm doing the actual coding project on but I need to install this pip and like I can't do it
So what do I do now?
in case I will try to install it
Okay thank you so much
And let's see what happens
apparently it takes time to install build dependencies
it's still there for me

and still there
Oh yh it took some time for me too
okay
well, I'll wait
Sweet
well
I don't have the same error as you
logs are way too long
but more importantly I think you are missing some key packages
do you have cmake installed?
and clang I think
don't remember if it's gcc or clang
im actually missing stuff so I will try again
Okay
Gcc I think i tried to install also doesn't work
But I can try
i have some errors too but not the same
mh
Can't install cmake either
Collecting cmake
Using cached cmake-3.31.4.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cmake
Building wheel for cmake (pyproject.toml) ... error
error: subprocess-exited-with-error
Ć Building wheel for cmake (pyproject.toml) did not run successfully.
ā exit code: 1
ā°ā> [199 lines of output]
scikit-build-core 0.10.7 using CMake 3.31.5 (wheel)
Configuring CMake...
loading initial cache file build/py3-none-linux_aarch64/CMakeInit.txt
-- The CXX compiler identification is Clang 19.1.7
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- **
-- Build CMake from source: ON
-- **
-- SuperBuild - CMakeProject-src-download
-- SuperBuild - CMakeProject-src-download - URL: https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4.tar.gz
-- SuperBuild - CMakeProject-src-download - CMakeProject_SOURCE_DIR: /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/CMake-src
-- Looking for GLIBC
-- Looking for GLIBC - not found
-- Looking for GLIBC_MINOR
-- Looking for GLIBC_MINOR - not found
-- SuperBuild - CMakeProject-build
-- SuperBuild - CMakeProject-build - CMakeProject_BINARY_DIR: /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build
-- SuperBuild - CMakePythonDistributions
-- Configuring done (1.8s)
-- Generating done (0.0s)
-- Build files have been written to: /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64
Building project with Ninja...
[1/25] Creating directories for 'CMakeProject-src-download'
[1/25] Performing download step (download, verify and extract) for 'CMakeProject-src-download'
-- Downloading...
dst='/data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/cmake-3.31.4.tar.gz'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4.tar.gz'
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
file='/data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/cmake-3.31.4.tar.gz'
-- Downloading... done
-- extracting...
src='/data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/cmake-3.31.4.tar.gz'
dst='/data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/CMake-src'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[3/25] No update step for 'CMakeProject-src-download'
[4/25] No patch step for 'CMakeProject-src-download'
[5/25] No configure step for 'CMakeProject-src-download'
[6/25] No build step for 'CMakeProject-src-download'
[7/25] No install step for 'CMakeProject-src-download'
[8/25] Completed 'CMakeProject-src-download'
[9/25] Creating directories for 'CMakeProject-build'
[10/25] No download step for 'CMakeProject-build'
[11/25] No update step for 'CMakeProject-build'
[12/25] No patch step for 'CMakeProject-build'
[12/25] Performing configure step for 'CMakeProject-build'
loading initial cache file /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/initial-cache.txt
loading initial cache file /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build-prefix/tmp/CMakeProject-build-cache-Release.cmake
-- The C compiler identification is Clang 19.1.7
-- The CXX compiler identification is Clang 19.1.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang
-- Check for working C compiler: /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang - broken
CMake Error at /data/data/com.termux/files/usr/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build/CMakeFiles/CMakeScratch/TryCompile-sIASEk'
Run Build Command(s): /data/data/com.termux/files/usr/bin/ninja -v cmTC_50d6d
[1/2] /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1 -O2 -g -DNDEBUG -MD -MT CMakeFiles/cmTC_50d6d.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_50d6d.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_50d6d.dir/testCCompiler.c.o -c /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build/CMakeFiles/CMakeScratch/TryCompile-sIASEk/testCCompiler.c
[2/2] : && /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1 -O2 -g -DNDEBUG -lstdc++ -lgcc -lrt CMakeFiles/cmTC_50d6d.dir/testCCompiler.c.o -o cmTC_50d6d && :
FAILED: cmTC_50d6d
: && /data/data/com.termux/files/usr/bin/aarch64-linux-android-clang -D_POSIX_C_SOURCE=199506L -D_POSIX_SOURCE=1 -D_SVID_SOURCE=1 -D_BSD_SOURCE=1 -O2 -g -DNDEBUG -lstdc++ -lgcc -lrt CMakeFiles/cmTC_50d6d.dir/testCCompiler.c.o -o cmTC_50d6d && :
ld.lld: error: unable to find library -lgcc
aarch64-linux-android-clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:8 (project)
-- Configuring incomplete, errors occurred!
FAILED: CMakeProject-build-prefix/src/CMakeProject-build-stamp/CMakeProject-build-configure /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build-prefix/src/CMakeProject-build-stamp/CMakeProject-build-configure
cd /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build && /data/data/com.termux/files/usr/bin/cmake -C /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/initial-cache.txt -GNinja -C/data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build-prefix/tmp/CMakeProject-build-cache-Release.cmake -S /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/CMake-src -B /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build && /data/data/com.termux/files/usr/bin/cmake -E touch /data/data/com.termux/files/usr/tmp/pip-install-eo1yt8oy/cmake_91e67fb6cecf496493f9fc1722105ab1/build/py3-none-linux_aarch64/CMakeProject-build-prefix/src/CMakeProject-build-stamp/CMakeProject-build-configure
ninja: build stopped: subcommand failed.
CMake build failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cmake
Failed to build cmake
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (cmake)
This is the error I get for cmake @Catinette
be sure to install cmake
pkg i cmake
and patchelf
and clang
Yh I can't install them
It won't let me
I got clang but not the other two
?
just do pkg install cmake
not pip install cmake
Yh so cmake pkg already installed it says
Anyway I'm troubleshooting step by step to see what can be installed
I see
Well i got all of those pkg
As a pkg I have installed everything you have said, got clang instead of gcc as gcc doesn't exist I don't think
I think some stuff is x86/x86_64 only
might be impossible to get it on arm
like ifort
it's still trying to build it here
actually making me phone slow af
something is happening

mh error
can't install it whatever I try
maybe someone with more knowledge about that specific tool can help
Okay how would I find this said person?
someone will read messages here
i responded in #coding channel (i am robert kirkman on gitter)
It doesn't work, I tried the code
And installed everything up until the statsmodels part
And there is bunch of errors saying error compiling Cyphon File:
In addition this is what my termux looks like now

@owokitty this is the error I got after executing the command
Okay nvm the error msg is too long to copy i can't even read the entire error msg š¦
does it show "unable to locate package python-scipy" ?
or "unable to locate package python-pandas" ?
and if you want i can explain how to send the entire log of each command
yes plz
both i believe
@owokitty if you could help with sending entire log would be nice so then we can fix it easier
yes
first type this
pkg install netcat-openbsd
then type this
pkg install build-essential python-pip python-scipy python-pandas git ninja cmake 2>&1 | nc termbin.com 9999
then send the URL that is shown@owokitty it just says unable to locate package python-scipy and pyhton-pandas
ok i will make a script to help you install these. wait a little while
Thanks a lot
just run these following commands
Perfect that worked
@Biswa96 okay but now it says unable to locate package pyhton-pip
python-pip
Yh that's not working now
what command did you try and what is the output?
Nvm I got it working finally
@Biswa96 @owokitty @Catinette Thanks for your help guys, I got it all to work now
If I have any other issues I'll be back haha
ok very good
i did not know if directly instructing people to type
apt install tur-repo
is allowed so, i was about to copy all the contents of the TUR packages into a standalone script and send that~ $ pip install scikit-learn
Collecting scikit-learn
Using cached scikit_learn-1.6.1.tar.gz (7.1 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
Ć pip subprocess to install build dependencies did not run successfully.
ā exit code: 1
ā°ā> [93 lines of output]
Collecting meson-python>=0.16.0
Using cached meson_python-0.17.1-py3-none-any.whl.metadata (4.1 kB)
Collecting Cython>=3.0.10
Downloading Cython-3.0.12-py2.py3-none-any.whl.metadata (3.3 kB)
Collecting numpy>=2
Downloading numpy-2.2.3.tar.gz (20.3 MB)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā 20.3/20.3 MB 42.5 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): still running...
Preparing metadata (pyproject.toml): still running...
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting scipy>=1.6.0
Using cached scipy-1.15.1.tar.gz (59.4 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Ć Preparing metadata (pyproject.toml) did not run successfully.
ā exit code: 1
ā°ā> [53 lines of output]
+ meson setup /data/data/com.termux/files/usr/tmp/pip-install-6zn6ooic/scipy_1ade7ab447de4899ad3bcfe9b132b212 /data/data/com.termux/files/usr/tmp/pip-install-6zn6ooic/scipy_1ade7ab447de4899ad3bcfe9b132b212/.mesonpy-v349avnu -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/data/data/com.termux/files/usr/tmp/pip-install-6zn6ooic/scipy_1ade7ab447de4899ad3bcfe9b132b212/.mesonpy-v349avnu/meson-python-native-file.ini
The Meson build system
Version: 1.7.0
Source dir: /data/data/com.termux/files/usr/tmp/pip-install-6zn6ooic/scipy_1ade7ab447de4899ad3bcfe9b132b212
Build dir: /data/data/com.termux/files/usr/tmp/pip-install-6zn6ooic/scipy_1ade7ab447de4899ad3bcfe9b132b212/.mesonpy-v349avnu
Build type: native build
Project name: scipy
Project version: 1.15.1
C compiler for the host machine: cc (clang 19.1.7 "clang version 19.1.7")
C linker for the host machine: cc ld.lld 19.1.7
C++ compiler for the host machine: c++ (clang 19.1.7 "clang version 19.1.7")
C++ linker for the host machine: c++ ld.lld 19.1.7
Cython compiler for the host machine: cython (cython 3.0.12)
Host machine cpu family: aarch64
Host machine cpu: aarch64
Program python found: YES (/data/data/com.termux/files/usr/bin/python3.12)
Found pkg-config: YES (/data/data/com.termux/files/usr/bin/pkg-config) 0.29.2
Run-time dependency python found: YES 3.12
Program cython found: YES (/data/data/com.termux/files/usr/tmp/pip-build-env-rqtau8lm/overlay/bin/cython)
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-unused-function: YES
Compiler for C supports arguments -Wno-conversion: YES
Compiler for C supports arguments -Wno-misleading-indentation: YES
Library m found: YES
../meson.build:80:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang-new'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
The following exception(s) were encountered:
Running
gfortran --help
gave "[Errno 2] No such file or directory: 'gfortran'"
Running gfortran --version
gave "[Errno 2] No such file or directory: 'gfortran'"
Running gfortran -V
gave "[Errno 2] No such file or directory: 'gfortran'"
Running flang-new --help
gave "[Errno 2] No such file or directory: 'flang-new'"
Running flang-new --version
gave "[Errno 2] No such file or directory: 'flang-new'"
Running flang-new -V
gave "[Errno 2] No such file or directory: 'flang-new'"
Running flang --help
gave "[Errno 2] No such file or directory: 'flang'"
Running flang --version
gave "[Errno 2] No such file or directory: 'flang'"
Running flang -V
gave "[Errno 2] No such file or directory: 'flang'"
Running nvfortran --help
gave "[Errno 2] No such file or directory: 'nvfortran'"
Running nvfortran --version
gave "[Errno 2] No such file or directory: 'nvfortran'"
Running nvfortran -V
gave "[Errno 2] No such file or directory: 'nvfortran'"
Running pgfortran --help
gave "[Errno 2] No such file or directory: 'pgfortran'"
Running pgfortran --version
gave "[Errno 2] No such file or directory: 'pgfortran'"
Running pgfortran -V
gave "[Errno 2] No such file or directory: 'pgfortran'"
Running ifort --help
gave "[Errno 2] No such file or directory: 'ifort'"
Running ifort --version
gave "[Errno 2] No such file or directory: 'ifort'"
Running ifort -V
gave "[Errno 2] No such file or directory: 'ifort'"
Running ifx --help
gave "[Errno 2] No such file or directory: 'ifx'"
Running ifx --version
gave "[Errno 2] No such file or directory: 'ifx'"
Running ifx -V
gave "[Errno 2] No such file or directory: 'ifx'"
Running g95 --help
gave "[Errno 2] No such file or directory: 'g95'"
Running g95 --version
gave "[Errno 2] No such file or directory: 'g95'"
Running g95 -V
gave "[Errno 2] No such file or directory: 'g95'"
A full log can be found at /data/data/com.termux/files/usr/tmp/pip-install-6zn6ooic/scipy_1ade7ab447de4899ad3bcfe9b132b212/.mesonpy-v349avnu/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Ć Encountered error while generating package metadata.
ā°ā> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Ć pip subprocess to install build dependencies did not run successfully.
ā exit code: 1
ā°ā> See above for output.
note:
This error originates from a subprocess, and is likely not a problem with pip.
@owokitty @Biswa96 I can't do ~pip install scikit-learn and it's the last one I need for me to finish this codethere is a TUR package for that but I have not installed it ever https://github.com/termux-user-repository/pypi-wheel-builder/tree/main/tur-pypi-312/python3.12-scikit-learn
So how do i download that and use it as i don't even know what a TUR package is
command provided here https://termux-user-repository.github.io/pypi/
use pip to install that scikit learn package.
Like this?

no idea.
Oh damn, is there any other way i can install it
Which one do you reckon I'll need from this? As i reckon if I put this at the end maybe it will work

@Oskay1000 i have done this now also and these commands work for me
pkg install flang
pip install pythran
CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=28" MATHLIB=m LDFLAGS="-lpython3.12" pip install scikit-learn --force-reinstall --no-build-isolation --no-cache-dir
for some reason, it requires fortran@owokitty I will have a look and get back to you thanks
@Oskay1000 to use some modules / libraries / whatever-the-language-calls-it from external sources such as
pip
(Python) / npm
(NodeJS) / etc., if it involves compiling, you may need to manually download the source code and try to compile and fix it until it finally compiles.
Many of these ones that auto-compile are not made with Termux in mind.~ $ CFLAGS+=" -UANDROID_API -DANDROID_API=28" MATHLIB=m LDFLAGS="-lpython3.12" pip install scikit-learn --force-reinstall --no-build-isolation --no-cache-dir
Collecting scikit-learn
Downloading scikit_learn-1.6.1.tar.gz (7.1 MB)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā 7.1/7.1 MB 41.5 MB/s eta 0:00:00
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
Ć Preparing metadata (pyproject.toml) did not run successfully.
ā exit code: 13
ā°ā> [118 lines of output]
+ meson setup /usr/tmp/pip-install-qvap0b46/scikit-learn_6a013ab4c2494f5893548f1727f6459c /usr/tmp/pip-install-qvap0b46/scikit-learn_6a013ab4c2494f5893548f1727f6459c/.mesonpy-umei5d0d
-Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/usr/tmp/pip-install-qvap0b46/scikit-learn_6a013ab4c2494f5893548f1727f6459c/.mesonpy-umei5d0d/meson-python-native-file.ini
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/mesonmain.py", line 193, in run
return options.run_func(options)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/msetup.py", line 365, in run
app.generate()
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/msetup.py", line 188, in generate
return self._generate(env, capture, vslite_ctx)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/msetup.py", line 227, in _generate
intr.run()
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreter/interpreter.py", line 3065, in run
super().run()
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 169, in run
self.evaluate_codeblock(self.ast, start=1)
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 195, in evaluate_codeblock
raise e
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 187, in evaluate_codeblock
self.evaluate_statement(cur
)
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 201, in evaluate_statement
return self.function_call(cur)
^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 528, in function_call
res = func(node, func_args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/decorators.py", line 237, in wrapper
return f(nargs, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/decorators.py", line 556, in wrapper
return f(wrapped_args, **wrapped_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreter/interpreter.py", line 2478, in func_subdir
self.evaluate_codeblock(codeblock)
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 195, in evaluate_codeblock
raise e
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 187, in evaluate_codeblock
self.evaluate_statement(cur)
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 207, in evaluate_statement
return self.method_call(cur)
^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/interpreterbase.py", line 557, in method_call
res = obj.method_call(method_name, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/interpreterbase/baseobjects.py", line 81, in method_call
return method(args, kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/dependencies/detect.py", line 114, in find_external_dependency
d = c()
^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/dependencies/python.py", line 410, in wrap_in_pythons_pc_dir
return PythonPkgConfigDependency(name, env, kwargs, installation, True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/dependencies/python.py", line 320, in init
PkgConfigDependency.init(self, name, environment, kwargs)
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/dependencies/pkgconfig.py", line 319, in init
self._set_libs()
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/dependencies/pkgconfig.py", line 535, in _set_libs
self.link_args, self.raw_link_args = self._search_libs(libs, raw_libs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/dependencies/pkgconfig.py", line 474, in _search_libs
args = self.clib_compiler.find_library(lib[2:], self.env,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/compilers/mixins/clike.py", line 1180, in find_library
return self._find_library_impl(libname, env, extra_dirs, code,
libtype, lib_prefix_warning)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/compilers/mixins/clike.py", line 1169, in _find_library_impl
value = self._find_library_real(libname, env, extra_dirs, code, libtype, lib_prefix_warning)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/compilers/mixins/clike.py", line 1147, in _find_library_real
for d in itertools.chain(extra_dirs, self.get_library_dirs(env, elf_class)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/compilers/mixins/clike.py", line 240, in get_library_dirs
return self._get_library_dirs(env, elf_class).copy()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/mesonbuild/compilers/mixins/clike.py", line 210, in _get_library_dirs
files = [f for f in os.listdir(d) if f.endswith('.so') and os.path.isfile(os.path.join(d, f))]
^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/data/data/com.termux/files/lib'
The Meson build system
Version: 1.6.1
Source dir: /usr/tmp/pip-install-qvap0b46/scikit-learn_6a013ab4c2494f5893548f1727f6459c
Build dir: /usr/tmp/pip-install-qvap0b46/scikit-learn_6a013ab4c2494f5893548f1727f6459c/.mesonpy-umei5d0d
Build type: native build
Project name: scikit-learn
Project version: 1.6.1
C compiler for the host machine: cc (clang 19.1.7 "clang version 19.1.7")
C linker for the host machine: cc ld.lld 19.1.7
C++ compiler for the host machine: c++ (clang 19.1.7 "clang version 19.1.7")
C++ linker for the host machine: c++ ld.lld 19.1.7
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: aarch64
Host machine cpu: aarch64
Compiler for C supports arguments -Wno-unused-but-set-variable: YES
Compiler for C supports arguments -Wno-unused-function: YES
Compiler for C supports arguments -Wno-conversion: YES
Compiler for C supports arguments -Wno-misleading-indentation: YES
Library m found: YES
Program python found: YES (/data/data/com.termux/files/usr/bin/python3.12)
Run-time dependency OpenMP for c found: YES 5.1
Found pkg-config: YES (/data/data/com.termux/files/usr/bin/pkg-config) 0.29.2
ERROR: Unhandled python OSError. This is probably not a Meson bug, but an issue with your build environment.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Ć Encountered error while generating package metadata.
ā°ā> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@owokitty this is what happens when I put the last line command in you sent
I'm sorry I don't rly understand what you mean
darn it showed
Permission denied: /data/data/com.termux/files/lib
for you
that might mean your termux installation got messed up by something, i dont know what
maybe you used pip install --upgrade pip
(dont copy that) or one of those other commands that messes up python in termux
that didnt happen to me so i dont know what you should doDamn yg I've defo done that command before
@owokitty so I'm stuck pretty much
yeah, sorry
i dont know what youre supposed to do if you did that by accident
this is where all the directions for this topic come from,
GitHub
Instructions how to install NUMPY and PANDAS on Termux Ā· termux ter...
Important: instructions provided in this post will not last forever and I will not update them for every new Python, Numpy or Pandas release. Instructions confirmed to work as of 2024.10.10 on a sy...
and at the bottom it says dont do that
... did you already check and see if any of those were already on Termux's own package repository?
Whoops... but still, @Oskay1000
@owokitty should I just reinstall pandas? And numpy then? Does that mean I have to reinstall everything else tho?
well you can try but, i'm not sure how to fix it after you used
pip install --upgrade pip
maybe you can try apt reinstall python-pip
first
python-numpy and python-scipy are in the main repository but python-pandas is on TUR
but the directions from the sylirre community post are what i used to also install scikit-learn, and Oskay1000 does not have TUR installed
if you give a complete list of all pip packages you need in total, so far, that has been statsmodels, numpy, scipy, pandas, and scikit-learn, then i can make a script for you to install all of them in a clean installed termux, with the correct commands~ $ pip list
Package Version
------------------------- ------------------------
anyio 4.8.0
argon2-cffi 23.1.0
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 3.0.0
async-lru 2.0.4
attrs 24.3.0
babel 2.16.0
beautifulsoup4 4.12.3
beniget 0.4.2.post1
bleach 6.2.0
certifi 2024.12.14
cffi 1.17.1
charset-normalizer 3.4.1
clang 17.0.6
comm 0.2.2
contourpy 1.3.1
cycler 0.12.1
Cython 3.0.11
debugpy 1.8.11
decorator 5.1.1
defusedxml 0.7.1
et_xmlfile 2.0.0
executing 2.1.0
fastjsonschema 2.21.1
fonttools 4.55.3
formulaic 1.1.1
fqdn 1.5.1
frozendict 2.4.6
gast 0.6.0
h11 0.14.0
html5lib 1.1
httpcore 1.0.7
httpx 0.28.1
idna 3.10
interface-meta 1.3.0
ipykernel 6.29.5
ipython 8.31.0
ipywidgets 8.1.5
isoduration 20.11.0
jedi 0.19.2
Jinja2 3.1.5
joblib 0.11
json5 0.10.0
jsonpointer 3.0.0
jsonschema 4.23.0
jsonschema-specifications 2024.10.1
jupyter 1.1.1
jupyter_client 8.6.3
jupyter-console 6.6.3
jupyter_core 5.7.2
jupyter-events 0.11.0
jupyter-lsp 2.2.5
jupyter_server 2.15.0
jupyter_server_terminals 0.5.3
jupyterlab 4.3.4
jupyterlab_pygments 0.3.0
jupyterlab_server 2.27.3
jupyterlab_widgets 3.0.13
kiwisolver 1.4.8
lml 0.1.0
lxml 5.3.1
MarkupSafe 3.0.2
matplotlib 3.8.4
matplotlib-inline 0.1.7
maturin 1.8.1
meson 1.6.1
meson-python 0.17.1
mistune 3.1.0
multitasking 0.0.11
nbclient 0.10.2
nbconvert 7.16.5
nbformat 5.10.4
nest-asyncio 1.6.0
notebook 7.3.2
notebook_shim 0.2.4
numpy 2.2.2
openpyxl 3.1.5
overrides 7.7.0
packaging 24.2
pandas 2.2.3
pandocfilters 1.5.1
parso 0.8.4
patsy 1.0.1
peewee 3.17.8
pexpect 4.9.0
pillow 11.1.0
pip 24.3.1
platformdirs 4.3.6
ply 3.11
prometheus_client 0.21.1
prompt_toolkit 3.0.48
psutil 6.1.1
ptyprocess 0.7.0
pure_eval 0.2.3
pycparser 2.22
pyexcel-io 0.6.7
pyexcel-xlsx 0.6.0
Pygments 2.19.1
pyparsing 3.2.1
pyproject-metadata 0.9.0
python-dateutil 2.9.0.post0
python-json-logger 3.2.1
python-pip 1.1.1
pythran 0.17.0
pytz 2024.2
PyYAML 6.0.2
pyzmq 26.2.0
referencing 0.35.1
requests 2.32.3
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rpds-py 0.22.3
safetensors 0.5.2
scipy 1.15.1
seaborn 0.13.2
Send2Trash 1.8.3
setuptools 75.8.0
setuptools-scm 8.1.0
simplejson 3.19.3
six 1.17.0
sniffio 1.3.1
soupsieve 2.6
stack-data 0.6.3
statsmodels 0.15.0.dev607+gce5ebf7c6
terminado 0.18.1
tinycss2 1.4.0
tornado 6.4.2
traitlets 5.14.3
types-python-dateutil 2.9.0.20241206
typing_extensions 4.12.2
tzdata 2024.2
uri-template 1.3.0
urllib3 2.3.0
versioneer 0.29
wcwidth 0.2.13
webcolors 24.11.1
webencodings 0.5.1
websocket-client 1.8.0
wheel 0.45.1
widgetsnbextension 4.0.13
wrapt 1.17.2
yahoo-finance 1.4.0
yfinance 0.2.52
@owokitty will this reset my jupyter notebook things tho that I have already done?
So this is what i have atm, and yes I need all of them, + scikit
This is what i need in my first cell for all my other code to work
!pip install yfinance
import warnings
warnings.filterwarnings('ignore')
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import yfinance as yf
!pip install statsmodels
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
Try saving the notebook directly inside Termux's home directory. That way you can open it up in whatever you saved it as (in case wherever it was gets lost).
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"
@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
you have to use the commands in that exact order otherwise it doesn't work
time for that to run on samsung galaxy s7 is about 1 hourSorry for the mate response but perfect, so if I uninstall the app I'll just run these and then I can use the code I have on jupyter notebook perfect
Also I got a cracked termux as I had to do that aparntly, but can't remember how I got it
How do you get termux
yes assuming there aren't more errors in the other code you have that you didn't send
you don't need a cracked termux,
use this termux
Termux | F-Droid - Free and Open Source Android App Repository
Terminal emulator with packages
Thank you
you were scammed if you installed a 'cracked' termux
When i mean cracked, i mean like the one not on Google playstore
Like just did a apk as its different from the googleplay store apparently
you shouldn't use the Google one anyway
only from fdroid or github
Okay so I have done this, i also need to download jupyter notebook too
I literally copy and pasted what you put
ok well, now i used
pip install notebook
and i think it just worked to install jupyter notebook, try thatOkay so when I copied the code you sent after detelting termux and reinstalling
I got error for building wheel for pillow and no module named "mesonpy" whilst trying to download pandas
which command did that happen on,
and did you use the commands in the exact order shown there?
so, did you use this first?
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
and when you said this did you mean that you had already run all the commands and they worked, or not that time?
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)@owokitty I'm gonna restart everything, okay so what version termux should I install after deleting it from my tablet
I clicked on the link can I just download the latest beta one
Also this comes up should I choose N or Y

it depends on what you want to do. the prompt message explain what the options do.
if you are installing termux from scratch, I would suggest to press Y and enter for all such cases.
Okay perfect thanks
@owokitty so when I rund the first part, which is this...
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
It is all fine apart from the last bit which I get this error
Building wheel for pillow (pyproject.toml) ... error
error: subprocess-exited-with-error
Ć Building wheel for pillow (pyproject.toml) did not run successfully.
ā exit code: 1
ā°ā> [217 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/BdfFontFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ContainerIO.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ExifTags.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/FitsImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/FontFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/GdImageFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/Image.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageChops.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageCms.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageColor.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageDraw.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageDraw2.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageEnhance.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageFilter.py -> build/lib.linux-aarch64-cpython-
312/PIL
copying src/PIL/ImageFont.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageGrab.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageMath.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageMode.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageMorph.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageOps.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImagePalette.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImagePath.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageQt.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageSequence.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageShow.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageStat.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageTk.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageTransform.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImageWin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/JpegPresets.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PSDraw.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PaletteFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/
PalmImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PcfFontFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PdfParser.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/QoiImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/TarIO.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/TiffTags.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/WalImageFile.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/init.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/main.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_binary.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_deprecate.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_typing.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_util.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_version.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/features.py -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/report.py -> build/lib.linux-aarch64-cpython-312/PIL
running egg_info
writing src/pillow.egg-info/PKG-INFO
writing dependency_links to src/pillow.egg-info/dependency_links.txt
writing requirements to src/pillow.egg-info/requires.txt
writing top-level names to src/pillow.egg-info/top_level.txt
reading manifest file 'src/pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.c'
warning: no files found matching '.h'
warning: no files found matching '.sh'
warning: no files found matching '.txt'
warning: no files found matching '.flake8'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.clang-format'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'renovate.json'
warning: no previously-included files matching '.git' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
no previously-included directories found matching '.ci'
no previously-included directories found matching 'wheels'
adding license file 'LICENSE'
writing manifest file 'src/pillow.egg-info/SOURCES.txt'
copying src/PIL/_imaging.pyi -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_imagingcms.pyi -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_imagingft.pyi -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_imagingmath.pyi -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_imagingmorph.pyi -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_imagingtk.pyi -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/_webp.pyi -> build/lib.linux-aarch64-cpython-312/PIL
copying src/PIL/py.typed -> build/lib.linux-aarch64-cpython-312/PIL
running build_ext
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation/basic-installation.html
Traceback (most recent call last):
File "<string>", line 1032, in <module>
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/init.py", line 117, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
self.run_command(cmd)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
Pillow (PIL Fork)
Basic Installation
Install Pillow with pip: Optionally, install defusedxml for Pillow to read XMP data, and olefile for Pillow to read FPX and MIC images: Linux We provide binaries for Linux for each of the supported...
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 379, in run
self.run_command("build")
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 136, in run
self.run_command(cmd_name)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 339, in run_command
self.distribution.run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
cmd_obj.run()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 99, in run
_build_ext.run(self)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 365, in run
self.build_extensions()
File "<string>", line 851, in build_extensions
RequiredDependencyException: jpeg
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-install-zlp0axot/pillow_df8e93eaca5c4f749ec07304b3649040/_custom_build/backend.py", line 26, in build_wheel
return super().build_wheel(wheel_directory, config_settings, metadata_directory)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 438, in build_wheel
return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 426, in _build
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
self.run_setup()
File "/data/data/com.termux/files/usr/tmp/pip-install-zlp0axot/pillow_df8e93eaca5c4f749ec07304b3649040/_custom_build/backend.py", line 20, in run_setup
return super().run_setup(setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/tmp/pip-build-env-v73sf102/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 1048, in <module>
RequiredDependencyException:
The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation/basic-installation.html
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pillow
Successfully built matplotlib contourpy kiwisolver
Failed to build pillow
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pillow)
Pillow (PIL Fork)
Basic Installation
Install Pillow with pip: Optionally, install defusedxml for Pillow to read XMP data, and olefile for Pillow to read FPX and MIC images: Linux We provide binaries for Linux for each of the supported...
you can install
apt install python-pillow
Worked thanks
Now trying the rest of the command he sent
@Biswa96 this is what happens when I try pip install notebook
~ $ pip install notebook
Collecting notebook
Downloading notebook-7.3.2-py3-none-any.whl.metadata (10 kB)
Collecting jupyter-server<3,>=2.4.0 (from notebook)
Downloading jupyter_server-2.15.0-py3-none-any.whl.metadata (8.4 kB)
Collecting jupyterlab-server<3,>=2.27.1 (from notebook)
Downloading jupyterlab_server-2.27.3-py3-none-any.whl.metadata (5.9 kB)
Collecting jupyterlab<4.4,>=4.3.4 (from notebook)
Downloading jupyterlab-4.3.5-py3-none-any.whl.metadata (16 kB)
Collecting notebook-shim<0.3,>=0.2 (from notebook)
Downloading notebook_shim-0.2.4-py3-none-any.whl.metadata (4.0 kB)
Collecting tornado>=6.2.0 (from notebook)
Downloading tornado-6.4.2.tar.gz (501 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting anyio>=3.1.0 (from jupyter-server<3,>=2.4.0->notebook)
Downloading anyio-4.8.0-py3-none-any.whl.metadata (4.6 kB)
Collecting argon2-cffi>=21.1 (from jupyter-server<3,>=2.4.0->notebook)
Downloading argon2_cffi-23.1.0-py3-none-any.whl.metadata (5.2 kB)
Collecting jinja2>=3.0.3 (from jupyter-server<3,>=2.4.0->notebook)
Downloading jinja2-3.1.5-py3-none-any.whl.metadata (2.6 kB)
Collecting jupyter-client>=7.4.4 (from jupyter-server<3,>=2.4.0->notebook)
Downloading jupyter_client-8.6.3-py3-none-any.whl.metadata (8.3 kB)
Collecting jupyter-core!=5.0.,>=4.12 (from jupyter-server<3,>=2.4.0->notebook)
Downloading jupyter_core-5.7.2-py3-none-any.whl.metadata (3.4 kB)
Collecting jupyter-events>=0.11.0 (from jupyter-server<3,>=2.4.0->notebook)
Downloading jupyter_events-0.12.0-py3-none-any.whl.metadata (5.8 kB)
Collecting jupyter-server-terminals>=0.4.4 (from jupyter-server<3,>=2.4.0->notebook)
Downloading jupyter_server_terminals-0.5.3-py3-none-any.whl.metadata (5.6 kB)
Collecting nbconvert>=6.4.4 (from jupyter-server<3,>=2.4.0->notebook)
Downloading nbconvert-7.16.6-py3-none-any.whl.metadata (8.5 kB)
Collecting nbformat>=5.3.0 (from jupyter-server<3,>=2.4.0->notebook)
Downloading nbformat-5.10.4-py3-none-any.whl.metadata (3.6 kB)
Collecting overrides>=5.0 (from jupyter-server<3,>=2.4.0->notebook)
Downloading overrides-7.7.0-py3-none-any.whl.metadata (5.8 kB)
Requirement already satisfied: packaging>=22.0 in /data/data/com.termux/files/usr/lib/python3.12/site-packages (from jupyter-server<3,>=2.4.0->notebook) (24.2)
Collecting prometheus-client>=0.9 (from jupyter-server<3,>=2.4.0->notebook)
Downloading prometheus_client-0.21.1-py3-none-any.whl.metadata (1.8 kB)
Collecting pyzmq>=24 (from jupyter-server<3,>=2.4.0->notebook)
Downloading pyzmq-26.2.1.tar.gz (278 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting send2trash>=1.8.2 (from jupyter-server<3,>=2.4.0->notebook)
Downloading Send2Trash-1.8.3-py3-none-any.whl.metadata (4.0 kB)
Collecting terminado>=0.8.3 (from jupyter-server<3,>=2.4.0->notebook)
Downloading terminado-0.18.1-py3-none-any.whl.metadata (5.8 kB)
Collecting traitlets>=5.6.0 (from jupyter-server<3,>=2.4.0->notebook)
Downloading traitlets-5.14.3-py3-none-any.whl.metadata (10 kB)
Collecting websocket-client>=1.7 (from jupyter-server<3,>=2.4.0->notebook)
Downloading websocket_client-1.8.0-py3-none-any.whl.metadata (8.0 kB)
Collecting async-lru>=1.0.0 (from jupyterlab<4.4,>=4.3.4->notebook)
Downloading async_lru-2.0.4-py3-none-any.whl.metadata (4.5 kB)
Collecting httpx>=0.25.0 (from jupyterlab<4.4,>=4.3.4->notebook)
Downloading httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting ipykernel>=6.5.0 (from jupyterlab<4.4,>=4.3.4->notebook)
Downloading ipykernel-6.29.5-py3-none-any.whl.metadata (6.3 kB)
Collecting jupyter-lsp>=2.0.0 (from jupyterlab<4.4,>=4.3.4->notebook)
Downloading jupyter_lsp-2.2.5-py3-none-any.whl.metadata (1.8 kB)
Requirement already satisfied: setuptools>=40.8.0 in /data/data/com.termux/files/usr/lib/python3.12/site-packages (from jupyterlab<4.4,>=4.3.4->notebook) (75.8.0)
Collecting babel>=2.10 (from jupyterlab-server<3,>=2.27.1->notebook)
Downloading babel-2.17.0-py3-none-any.whl.metadata (2.0 kB)
Collecting json5>=0.9.0 (from jupyterlab-server<3,>=2.27.1->notebook)
Downloading json5-0.10.0-py3-none-any.whl.metadata (34 kB)
Collecting jsonschema>=4.18.0 (from jupyterlab-server<3,>=2.27.1->notebook)
Downloading jsonschema-4.23.0-py3-none-any.whl.metadata (7.9 kB)
Requirement already satisfied: requests>=2.31 in /data/data/com.termux/files/usr/lib/python3.12/site-packages (from jupyterlab-server<3,>=2.27.1
->notebook) (2.32.3)
Requirement already satisfied: idna>=2.8 in /data/data/com.termux/files/usr/lib/python3.12/site-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook) (3.10)
Collecting sniffio>=1.1 (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook)
Downloading sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)
Requirement already satisfied: typing_extensions>=4.5 in /data/data/com.termux/files/usr/lib/python3.12/site-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->notebook) (4.12.2)
Collecting argon2-cffi-bindings (from argon2-cffi>=21.1->jupyter-server<3,>=2.4.0->notebook)
Downloading argon2-cffi-bindings-21.2.0.tar.gz (1.8 MB)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā 1.8/1.8 MB 18.9 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: certifi in /data/data/com.termux/files/usr/lib/python3.12/site-packages (from httpx>=0.25.0->jupyterlab<4.4,>=4.3.4->notebook) (2025.1.31)
Collecting httpcore==1. (from httpx>=0.25.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading httpcore-1.0.7-py3-none-any.whl.metadata (21 kB)
Collecting h11<0.15,>=0.13 (from httpcore==1.->httpx>=0.25.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Collecting comm>=0.1.1 (from ipykernel>=6.5.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading comm-0.2.2-py3-none-any.whl.metadata (3.7 kB)
Collecting debugpy>=1.6.5 (from ipykernel>=6.5.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading debugpy-1.8.12-py2.py3-none-any.whl.metadata (1.3 kB)
Collecting ipython>=7.23.1 (from ipykernel>=6.5.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading ipython-8.32.0-py3-none-any.whl.metadata (5.0 kB)
Collecting matplotlib-inline>=0.1 (from ipykernel>=6.5.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading matplotlib_inline-0.1.7-py3-none-any.whl.metadata (3.9 kB)
Collecting nest-asyncio (from ipykernel>=6.5.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading nest_asyncio-1.6.0-py3-none-any.whl.metadata (2.8 kB)
Collecting psutil (from ipykernel>=6.5.0->jupyterlab<4.4,>=4.3.4->notebook)
Downloading psutil-7.0.0.tar.gz (497 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting MarkupSafe>=2.0 (from jinja2>=3.0.3->jupyter-server<3,>=2.4.0->notebook)
Downloading markupsafe-3.0.2.tar.gz (20 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting attrs>=22.2.0 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook)
Downloading attrs-25.1.0-py3-none-any.whl.metadata (10 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook)
Downloading jsonschema_specifications-2024.10.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook)
Downloading referencing-0.36.2-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=4.18.0->jupyterlab-server<3,>=2.27.1->notebook)
Downloading rpds_py-0.23.1.tar.gz (26 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
Ć pip subprocess to install build dependencies did not run successfully.
ā exit code: 1
ā°ā> [50 lines of output]
Collecting maturin<2.0,>=1.2
Downloading maturin-1.8.2.tar.gz (199 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: maturin
Building wheel for maturin (pyproject.toml): started
Building wheel for maturin (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Ć Building wheel for maturin (pyproject.toml) did not run successfully.
ā exit code: 1
ā°ā> [28 lines of output]
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-312/maturin
copying maturin/init.py -> build/lib.linux-aarch64-cpython-312/maturin
copying maturin/main.py -> build/lib.linux-aarch64-cpython-312/maturin
running egg_info
writing maturin.egg-info/PKG-INFO
writing dependency_links to maturin.egg-info/dependency_links.txt
writing requirements to maturin.egg-info/requires.txt
writing top-level names to maturin.egg-info/top_level.txt
reading manifest file 'maturin.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.json' under directory 'src/python_interpreter'
writing manifest file 'maturin.egg-info/SOURCES.txt'
running build_ext
running build_rust
error: can't find Rust compiler
If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
To update pip, run:
pip install --upgrade pip
and then retry package installation.
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for maturin
Failed to build maturin
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (maturin)
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Ć pip subprocess to install build dependencies did not run successfully.
ā exit code: 1
ā°ā> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
please use a pasting service for the long output. it is hard to read in discord.
I don't know how to do that sorry
But I can look into it
This is the last thing I believe that if I can now get jupyter to work I don't need to install any more packages for a while
So the command he sent all worked
So then I did pip install notebook and now getting this error
like pastebin or alternatives https://alternativeto.net/software/pastebin/
solution to that above error
apt install rust
btw, make a note of the required packages. it may come handy later.Pastebin
~ $ pip install notebookCollecting notebook Downloading notebook-7...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Thank you i will attempt now
it's rust btw. phone may explode ;)
Im doing it on a tablet s8 plus should be fine
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
It's all worked thank you, just waiting on fixing the install notebook too then all is good
i did not install
pip install notebook
in a clean termux so there might be some additional things that requires
now i will install it in the same clean termux where i tested again today and checkPastebin
~ $ pip install notebookCollecting notebook Using cached notebook-...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Now I'm getting these errors
apt install libzmq
~ $ jupyter notebook
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/jupyter-notebook", line 5, in <module>
from notebook.app import main
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/notebook/app.py", line 9, in <module>
from jupyter_client.utils import ensure_async # type:ignore[attr-defined]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/jupyter_client/init.py", line 3, in <module>
from .asynchronous import AsyncKernelClient
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/jupyter_client/asynchronous/init.py", line 1, in <module>
from .client import AsyncKernelClient # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/jupyter_client/asynchronous/client.py", line 8, in <module>
import zmq.asyncio
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/zmq/init.py", line 52, in <module>
from zmq import backend
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/zmq/backend/init.py", line 30, in <module>
raise original_error from None
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/zmq/backend/init.py", line 25, in <module>
_ns = select_backend(first)
^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/zmq/backend/select.py", line 31, in select_backend
mod = import_module(name)
^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/zmq/backend/cython/init.py", line 6, in <module>
from . import _zmq
ImportError: dlopen failed: cannot locate symbol "PyExc_ImportError" referenced by "/data/data/com.termux/files/usr/lib/python3.12/site-packages/zmq/backend/cython/_zmq.cpython-312.so"...
And now I get this when I put jupyter notebook
As pip install notebook worked
So just install patchelf and run the command they put there let's see
Pastebin
~ $ pip install patchelfCollecting patchelf Downloading patchelf-0...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
This is what happens when I try to install Patchelf haha @Biswa96
Should I also try reinstalling pyzmq?
apt install patchelf
š¤¦It says its already newest version
Okay perfect idk how but jupyter notebook worked now
Once again thanks guys
oh ok