anyone having issue with python project development on termux? whether using vanilla pip, uv or poetry. everytime i add spotdl as dependency, it needs to compile pydantic-core. worse things happened with uv and poetry. everytime i run main.py, they both recompile pydantic-core and it took like 20 mins. does this related to the python version? i also read on several github issues about python on termux, most libraries aren't compatible with bionic libc or something
#pydantic-core on termux
15 messages · Page 1 of 1 (latest)
when using vanilla pip, did it eventually work, or did it eventually have an error and not work?
The development workflow I would recommend for Python in Termux is currently this:
- Install
python-pipand any otherpython-*dependencies that you need that are available frompkgin Termux - after that, do not use a virtualenv. Instead, use
pip installunsandboxed directly to install any remaining PyPi dependencies you need that are not available frompkg, and just wait a long time, if you see an error, open a report about it. uvhas problems currently with Termux, there are several issues about this including an upstream issue, avoid it in favor ofpipinstead- just keep this state saved in your Termux while you do Python development, if you don't want to wait 20 minutes every time you use a new device, you can use
termux-backupandtermux-restoreto transfer your Termux content to another device. This will only work if both devices are 32-bit ARM, or both devices are 64-bit ARM. If you need to transfer to another device that is a different architecture, then you have to do all your setup commands again and wait, there is no alternative
using vanilla pip also compiles the pydantic-core (ig this is normal) and running the script works fine w/ just python main.py
i've asked the same question on uv discord community. they said it's termux's problem
ask them about this issue
well, don't actually,
because they already know about that issue, so if you bother them in an annoying way about it that would be rude,
but basically if that uv issue gets fixed some time, then after that uv would be able to work better in termux
yes it's normal for pip packages to spend a long time compiling
ah okay but same thing happened with poetry
okay it's resolved ig. at least i alr know the actual problem. thanks @devout otter
Thank you for marking this question as solved!
Learn more