跳到正文
DEV Community· Mango Developer·· 5 小時前AI 評分66

Python 3.15 令 Windows on Arm 更適合日常開發,但仍有套件缺口

Python 3.15 Makes Windows on Arm a Real Dev Machine. Here's What Still Bites

AI 導讀

Python 3.15 配合 Python Install Manager 26.4,會在 Windows on Arm 裝置預設選用原生 Arm64 執行環境,CPython 亦把該平台列為 Tier 2,並將 Arm 測試納入發布流程。

正文

For years my answer to "can I use a Windows on Arm laptop for Python work?" has been a nervous "probably, but test first." Too many projects broke the moment a package needed a compiled extension, and you'd end up on an x64 interpreter running under emulation without realising it. With Python 3.15, that answer finally changes to something closer to "yes, with a short checklist."

Microsoft laid it out in a Windows Developer Blog post on October 14 by distinguished engineer Chris Anderson. The headline is that Python on Windows on Arm is now native by default. That's a bigger deal than it sounds, and it lands at a good moment, with Snapdragon X machines and the new Nvidia RTX Spark laptops both pushing more people onto Arm-based Windows PCs.

What "native by default" actually means

Native Arm64 builds of CPython for Windows have existed for several versions. The problem was everything around them. Installers and tools often handed you the x64 build, and many packages only shipped x64 wheels, so you'd quietly fall back to emulation.

With Python 3.15, three things changed at once:

  • CPython treats Windows on Arm as a Tier 2 platform under PEP 11. That means continuous testing, active core developers, and a rule that platform-breaking changes must be fixed promptly or reverted. Windows on Arm CI results are now part of CPython's release process.
  • The installer picks Arm64 for you. With Python Install Manager 26.4, Arm devices default to the Arm64 platform, so asking for Python 3.15 gets you the native runtime unless your configuration or an explicit architecture tag says otherwise.
  • Python 3.15 ships a complete set of Windows on Arm component packages next to the x64 ones, and CPython runs its tests on Arm, including the free-threaded configuration.

Python 3.15.0 itself was released on October 9, and python.org lists a dedicated Windows ARM64 installer alongside the 64-bit and 32-bit x64 ones. The release page also recommends the Python install manager for Windows, with a release manifest that installs via py install 3.15.

Why the package story is the real news

A native interpreter is worthless if the packages you need won't install. This is where the numbers in Microsoft's post surprised me.

As of September 2026, Microsoft says a scan of the 1,000 most-downloaded PyPI projects found that about 94% of their latest releases published either a native Windows on Arm wheel or a platform-independent wheel. Microsoft is careful to say this measures wheel availability, not whether every application works end to end, and that caveat is worth taking seriously. Still, 94% is a long way from where things stood a couple of years ago.

The names on the list are the ones most people care about:

  • Scientific stack: NumPy and SciPy publish native Arm wheels backed by native OpenBLAS and Fortran support. pandas, Polars, Matplotlib, scikit-learn, Pillow, h5py, statsmodels and XGBoost have shipped Arm64 wheels. Numba and llvmlite add JIT compilation.
  • Web and cloud: Django, Flask, FastAPI, Requests and HTTPX publish platform-independent wheels. AWS Boto3, Azure Storage Blob and Google Cloud Storage do too.
  • Tooling: pip, venv, virtualenv, setuptools, build and uv are available, as are Ruff, Black, mypy, pytest and coverage. Rust-based packages like pydantic-core, orjson and tokenizers ship native wheels.
  • Notebooks: JupyterLab, Notebook, ipykernel, pyzmq and psutil work, so local notebooks are practical with a native kernel.

On the editor side, Microsoft lists VS Code with Pylance and the Python and Jupyter extensions, plus JetBrains PyCharm, IntelliJ, WebStorm and Rider, as supporting Windows on Arm.

Anaconda users: good progress, one catch

If you live in conda, the picture is better than it was but not finished. Anaconda now publishes Windows on Arm packages to its production main channel, with more than 2,500 packages. Notice the version range, though: Microsoft says those packages cover Python 3.12 through 3.14. If you need 3.15 specifically today, the python.org route is the one to take.

That channel includes NumPy, SciPy and pandas on native OpenBLAS, XGBoost, llama.cpp for local model inference, Flask and Django, and PostgreSQL and ODBC connectivity through libpq, psycopg, psycopg2 and pyodbc. It also carries PyTorch 2.14 CPU packages and CUDA packages for Python 3.12 to 3.14, plus CUDA Toolkit 13.4.1.

Conda-forge has stood up a Windows on Arm repository and started an experimental migration, and Anaconda says it's working toward conda itself and a Windows on Arm Miniconda installer. So it's moving, but I'd still call conda-on-Arm "early" for heavy data science work.

What still bites

Microsoft is admirably direct about the gaps. Its next focus is wider native wheel coverage to close holes in PyArrow, gRPC, OpenCV and database clients. If your project depends on any of those, test before you commit to an Arm laptop as your only machine.

The other trap is subtler. A package can be platform-independent at the top level and still pull in a native extension further down its dependency tree. Microsoft's own advice is to test your complete pinned dependency graph rather than only the packages you import directly. I'd go further: run your full test suite on the Arm machine before you trust it with a deadline.

And if something only exists as an x64 wheel, you're not stuck. x64 packages can keep running through Windows emulation as a transition path. You just need an x64 interpreter for that environment, because native Arm Python can't load x64 extensions.

The one check everyone should do

This takes ten seconds and settles most confusion. Open a terminal, start Python, and read the first line it prints.

  • A native Windows on Arm interpreter includes 64-bit (ARM64) in the compiler information.
  • An x64 interpreter, running under emulation, shows 64-bit (AMD64).

If you upgraded from an older setup, there's a decent chance you've been on AMD64 without knowing it. I'd recommend reinstalling with Python Install Manager 26.4 and recreating your virtual environments on the native runtime. Running Python natively keeps the interpreter and its native dependencies on the same architecture, which is the whole point.

How I'd set up a fresh Arm laptop for Python today

If you're starting clean on a new Snapdragon or RTX Spark machine, this is the order I'd do things in:

  1. Install Python through Python Install Manager 26.4 and request 3.15. On Arm hardware it should pick the native Arm64 runtime by itself.
  2. Confirm the banner says ARM64 before you create a single virtual environment. Fixing it later means rebuilding everything.
  3. Use uv or venv for each project. Both are available on the platform, and per-project environments make it easy to keep a separate x64 environment for the one stubborn project that needs it.
  4. Install your editor's native build. VS Code and the JetBrains IDEs Microsoft lists all support Windows on Arm, so there's no reason to run them under emulation.
  5. Run your test suite before real work. If something fails to install, check whether the package publishes an Arm64 wheel, and report the gap to the maintainer if not.

None of this is exotic. It's the same routine you'd follow on any new machine, with one extra glance at the startup banner. That's really the point of this release: Windows on Arm stops being a special case you have to plan around.

For maintainers: the CI excuse is gone

If you publish a Python package, the barrier to supporting Arm on Windows used to be hardware. You needed a self-hosted Arm box or you were guessing through emulation. GitHub Actions now offers windows-11-arm and windows-11-vs2026-arm hosted runners for eligible public and private repositories, and CPython uses that runner for its own Arm64 Windows jobs.

That turns Arm support into one more row in your build matrix. Microsoft even points to a GitHub Actions Windows on Arm wheel builder custom agent in the awesome-copilot repository that can automate the work from an issue. Whether or not you use the agent, adding the runner is cheap, and your Arm users will thank you.

AI and local models on Arm

The AI side is still a work in progress, and it's the area I'd watch most closely. ONNX Runtime publishes native Windows on Arm CPU packages, and Windows ML supports Arm64 with CPU, GPU and NPU execution providers. On supported Snapdragon devices, ONNX Runtime's QNN provider can target Qualcomm's CPU, GPU and HTP/NPU backends.

Windows on Arm builds of PyTorch and Nvidia CUDA components are publicly available for validation, and Anaconda plans CUDA-enabled packages with llama.cpp and PyTorch among the first targets. If you bought an Arm laptop to run local models from Python, it's usable now, but expect some setup friction.

Should you care?

If you write Python on a Snapdragon or other Arm Windows laptop, yes, this is the update that makes the platform feel normal. Reinstall with the new install manager, check the ARM64 banner, rebuild your environments, and test your full dependency tree. If you rely on PyArrow, gRPC or OpenCV, keep an x64 machine or environment around a little longer. And if you were waiting for a sign that Windows on Arm is safe for everyday Python work, this is about as clear a sign as Microsoft and the CPython team could give.

Frequently Asked Questions

Does Python 3.15 install natively on Windows on Arm?

Yes. With Python Install Manager 26.4, Arm devices default to the Arm64 platform, so requesting Python 3.15 installs the native runtime unless configuration or an architecture tag overrides it. python.org also offers a separate Windows ARM64 installer.

How do I know if my Python is running natively on Arm?

Start Python and read the startup banner. Native builds show 64-bit (ARM64). If it shows 64-bit (AMD64), you're running the x64 build under emulation.

Which Python packages still don't have native Windows on Arm wheels?

Microsoft names PyArrow, gRPC, OpenCV and some database clients as the gaps it's working to close next. Always test your full pinned dependency graph, because native extensions can hide in sub-dependencies.

Does Anaconda support Python 3.15 on Windows on Arm?

Not yet in the main channel, according to Microsoft. Anaconda's 2,500-plus Windows on Arm packages cover Python 3.12 through 3.14.


Originally published on Mango Developer.

來源:DEV Community · dev.to