Skip to content

UV stopped working on android after python upgrade to 3.13 #18285

@ShaharNaveh

Description

@ShaharNaveh

Summary

On android, termux (terminal emulator for android) has recently updated python from 3.12.X -> 3.13.X. this caused UV to produce the following error when trying to run:

$ uv tool install ipython --force
error: Failed to inspect Python interpreter from first executable in the search path at `/data/data/com.termux/files/usr/bin/python`
  Caused by: Can't use Python at `/data/data/com.termux/files/usr/bin/python`
  Caused by: Unknown operating system: `android`

I believe this regression occurs because sys.platform returns 'linux' on python 3.12 but returns 'android' on 3.13. (See notes for https://docs.python.org/3/library/sys.html#sys.platform)

Platform

android

Version

0.9.15

Python version

Python 3.13.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions