| page_type | languages | products | name | urlFragment | description | extendedZipContent | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
WindowsML python |
WindowsMLPython |
Shows how to use WindowsML and ONNX Runtime to write python machine learning projects that runs across Windows AI hardware. |
|
..\Download-Model.ps1- Create a python environment with Python 3.10 - 3.13
- Ensure that your Python installation is not from the Microsoft Store (you can install an unpackaged version from python.org or via winget). The sample depends on using the Windows App SDK dynamic dependency API, which is only valid for unpackaged apps.
- Install the latest WinML python packages
.\Install-Requirements.ps1Please install the WindowsAppRuntime that matches the version of the python package wasdk-Microsoft.Windows.ApplicationModel.DynamicDependency.Bootstrap
For experimental or preview WASDK. The version tags
-xxxNare changed to.devNto fit Python's version requirements.
python main.py