Skip to content

Commit 5633bed

Browse files
Merge pull request #1298 from jasonrandrews/review
Update Python for Windows on Arm install guide for version 3.13
2 parents 218d6a2 + a3c779f commit 5633bed

File tree

5 files changed

+27
-21
lines changed

5 files changed

+27
-21
lines changed
-3.92 KB
Binary file not shown.
-62.3 KB
Loading
-63.9 KB
Loading
3.78 KB
Loading

content/install-guides/py-woa.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ multitool_install_part: false # Set to true if a sub-page of a multi-page arti
2727
layout: installtoolsall # DO NOT MODIFY. Always true for tool install articles
2828
---
2929

30-
Python has native support for [Windows on Arm](https://learn.microsoft.com/en-us/windows/arm/overview). Starting with version 3.11, an official installer is available. The latest version at time of writing is 3.12.0.
30+
Python has native support for [Windows on Arm](https://learn.microsoft.com/en-us/windows/arm/overview). Starting with version 3.11, an official installer is available. The latest version at time of writing is 3.13.0.
3131

3232
A number of developer ready Windows on Arm [devices](/learning-paths/laptops-and-desktops/intro/find-hardware/) are available.
3333

3434
Windows on Arm instances are available with Microsoft Azure. For more information, see [Deploy a Windows on Arm virtual machine on Microsoft Azure](/learning-paths/cross-platform/woa_azure/).
3535

36-
## Download and install
36+
## How do I download and install Python for Windows on Arm?
3737

3838
The installer can be downloaded from the [Python website](https://www.python.org/downloads/windows/). Locate the `ARM64` installer.
3939

4040
You can also download from a PowerShell terminal.
4141
```command
42-
curl https://www.python.org/ftp/python/3.12.0/python-3.12.0-arm64.exe -O python-3.12.0-arm64.exe
42+
curl https://www.python.org/ftp/python/3.13.0/python-3.13.0-arm64.exe --output python-3.13.0-arm64.exe
4343
```
4444

4545
Once downloaded, run the installer `exe` file on a Windows on Arm machine.
@@ -54,44 +54,52 @@ Check `Add python.exe to PATH` if you want to easily invoke python from any dire
5454

5555
![Complete #center](/install-guides/_images/py2-woa.png)
5656

57-
## Invoke python
57+
## How do I start Python on Windows?
5858

5959
At a Windows Command prompt or a PowerShell prompt use `python` or `py` to start the interpreter.
60+
6061
```cmd
6162
py
6263
```
64+
65+
The interpreter starts with output similar to:
66+
6367
```output
64-
Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct 2 2023, 13:15:47) [MSC v.1935 64 bit (ARM64)] on win32
68+
Python 3.13.0 (tags/v3.13.0:60403a5, Oct 7 2024, 10:17:29) [MSC v.1941 64 bit (ARM64)] on win32
6569
Type "help", "copyright", "credits" or "license" for more information.
6670
>>>
6771
```
68-
Enter `exit()` to leave interpreter.
72+
73+
Enter `exit()` to leave the interpreter:
74+
6975
```python
7076
exit()
7177
```
7278

73-
## Test an example
79+
## How can I run a Python example?
7480

75-
To confirm python is working, save the code below into a file `uname.py`.
81+
To confirm python is working, use a text editor to save the code below to a file named `uname.py`.
7682

77-
#### uname.py
7883
```python
7984
import platform
8085
print("Python version", platform.python_version())
8186
print("Machine is", platform.uname().system, platform.uname().release, platform.uname().machine)
8287
```
8388

84-
Run the code.
89+
Run the code:
90+
8591
```console
8692
py uname.py
8793
```
94+
8895
Running on a Windows on Arm machine produces the output similar to:
96+
8997
```output
90-
Python version 3.12.0
98+
Python version 3.13.0
9199
Machine is Windows 11 ARM64
92100
```
93101

94-
## Installing packages
102+
## How do I install Python packages?
95103

96104
Python `pip` can be used to install packages.
97105

@@ -100,9 +108,8 @@ For example, to install [Flask](https://palletsprojects.com/p/flask/):
100108
pip install Flask
101109
```
102110

103-
Save the code below as `hello.py`:
111+
Use a text editor to save the code below as `hello.py`:
104112

105-
#### hello.py
106113
```python
107114
import platform
108115
from flask import Flask
@@ -131,28 +138,28 @@ WARNING: This is a development server. Do not use it in a production deployment.
131138
* Running on http://10.8.0.10:5000
132139
Press CTRL+C to quit
133140
```
134-
Open a browser to the URL printed by the application. In this example:
141+
Open a browser with the URL printed by the application. In this example:
135142
```url
136143
http://127.0.0.1:5000
137144
```
138145
The output is displayed in the browser window.
139146

140147
![Complete #center](/install-guides/_images/flask-woa.png)
141148

142-
The accesses are reported in the command prompt:
149+
The accesses are reported in the command window:
150+
143151
```output
144152
127.0.0.1 - - [<timestamp>] "GET / HTTP/1.1" 200 -
145153
127.0.0.1 - - [<timestamp>] "GET /favicon.ico HTTP/1.1" 404 -
146154
10.8.0.10 - - [<timestamp>] "GET / HTTP/1.1" 200 -
147155
10.8.0.10 - - [<timestamp>] "GET /favicon.ico HTTP/1.1" 404 -
148156
```
149-
Use `Ctrl+C` to kill the application.
150157

151-
## Using IDLE
158+
Use `Ctrl+C` to stop the application.
152159

153-
Python `IDLE` is included in the installation. IDLE is a simple IDE for python development. You can locate it in your start menu.
160+
## Is Python IDLE available?
154161

155-
![IDLE #center](/install-guides/_images/idle.png)
162+
Python `IDLE` is included in the installation. IDLE is a simple IDE for python development. You can locate it in your start menu.
156163

157164
You can create and run Python applications in this environment.
158165

@@ -163,5 +170,4 @@ Then select `Run` > `Run module` (`F5`) to execute.
163170
![IDLE uname #center](/install-guides/_images/py3-woa.png)
164171

165172

166-
167173
You are now ready to use Python on your Windows on Arm device.

0 commit comments

Comments
 (0)