本教程教你如何在 Termux 上安装 Jupyter Notebook / Lab,无需等待编译,直接使用预编译的 wheel 包。
$ pip install jupyter
Collecting jupyter
Downloading jupyter-1.1.1.tar.gz
Installing build dependencies ...
⚠️ 编译依赖包(pyzmq, tornado 等)耗时极长,经常失败
结果:Jupyter 依赖链长,编译经常卡死 ⏱️
$ pip install --index-url https://nsyhykui.github.io/python_wheels_for_termux/simple/ jupyter
Looking in indexes: https://nsyhykui.github.io/.../simple/
Collecting jupyter
Downloading jupyter-1.1.1-py3-none-any.whl
Downloading pyzmq-26.4.1-cp313-cp313-android_24_arm64_v8a.whl (1.2 MB)
Downloading tornado-6.4.2-cp313-cp313-android_24_arm64_v8a.whl (437 kB)
Successfully installed jupyter-1.1.1 pyzmq-26.4.1 tornado-6.4.2 ...
real 1m30.123s
结果:不到 2 分钟装好 ✅
pip config set global.index-url https://nsyhykui.github.io/python_wheels_for_termux/simple/
设置后,直接 pip install jupyter 即可。
pip install --index-url https://nsyhykui.github.io/python_wheels_for_termux/simple/ jupyter
或者只安装轻量版的 Notebook(不含 Lab):
pip install --index-url https://nsyhykui.github.io/python_wheels_for_termux/simple/ notebook
Termux:X11(可从 F-Droid 或 GitHub 下载)termux-x11 & pip install jupyter & jupyter notebookpkg install tigervncjupyter notebook --no-browser,然后通过电脑浏览器访问手机 IP 和端口(如 http://192.168.x.x:8888)python -c "import jupyter; print(jupyter.__version__)"
libc++_shared.so 相关错误:运行 pkg install libc++termux-wake-lock 保持后台运行jupyter notebook --port 8889🔗 ← 安装 NumPy | 安装 Pandas | 安装 SciPy | 安装 Matplotlib | 返回教程首页 | 包索引