ohos-python

Standalone CPython builds for OpenHarmony.

GitHub: hqzing/ohos-python

Get Pre-built Packages

Usage

1. Manual install

curl -fLO https://github.com/hqzing/ohos-python/releases/download/20260913/cpython-3.14.7%2B20260913-aarch64-unknown-linux-ohos-install_only.tar.gz
# or the CDN mirror:
# curl -fLO https://ohos-python.com/20260913/cpython-3.14.7%2B20260913-aarch64-unknown-linux-ohos-install_only.tar.gz
tar -zxf cpython-*.tar.gz
export PATH=$PATH:$(realpath python/bin)

python3 -c "import sys; print(sys.platform)"   # ohos

2. Use with uv

hqzing/ohos-uv downloads from this project's GitHub Releases by default — once installed, it works out of the box:

uv python install 3.14
uv python list

You can also point it at the CDN mirror (faster for users in China):

export UV_PYTHON_INSTALL_MIRROR=https://ohos-python.com