@@ -15,7 +15,7 @@ v1. You can upgrade to the AWS CLI v2 to avoid these deprecations in the future.
15
15
----
16
16
## Timeline
17
17
18
- Going forward, customers using the CLI v1 should transition to using Python 3, with Python 3.8 becoming
18
+ Going forward, customers using the CLI v1 should transition to using Python 3, with Python 3.9 becoming
19
19
the minimum by the end of the transition. The deprecation dates for the affected versions of Python are:
20
20
21
21
| Python version| Deprecation date|
@@ -24,6 +24,7 @@ the minimum by the end of the transition. The deprecation dates for the affected
24
24
| Python 3.4 and 3.5| 2/1/2021|
25
25
| Python 3.6| 5/30/2022|
26
26
| Python 3.7| 12/13/2023|
27
+ | Python 3.8| 4/22/2025|
27
28
28
29
## Impact on the AWS CLI
29
30
@@ -49,7 +50,7 @@ $ aws --version
49
50
aws-cli/1.18.191 Python/2.7.18 Darwin/19.6.0 botocore/1.19.31
50
51
```
51
52
52
- If the second portion of the version string, starting with ** Python/** isn’t Python/3.8 .x
53
+ If the second portion of the version string, starting with ** Python/** isn’t Python/3.9 .x
53
54
or higher, you should review the options below.
54
55
55
56
### Installing CLI with Python 3
@@ -62,20 +63,20 @@ Otherwise, upgrading Python versions isn’t difficult.
62
63
63
64
1 . To begin, uninstall your existing copy of the AWS CLI. You can find instructions in the
64
65
[ CLI v1 installation guide] ( https://docs.aws.amazon.com/cli/latest/userguide/install-linux.html ) .
65
- 2 . Now we’ll install Python 3.8 or later. You can get Python from
66
+ 2 . Now we’ll install Python 3.9 or later. You can get Python from
66
67
[ Python.org] ( https://www.python.org/downloads ) or using your local package manager.
67
- In this example, we’ll use a recent version, Python 3.8.7 , to ensure the longest support window.
68
+ In this example, we’ll use a recent version, Python 3.9.22 , to ensure the longest support window.
68
69
3 . Next, depending on your installation method, the new Python installation should be available at
69
70
one of these locations. Use these commands to verify:
70
71
``` bash
71
72
$ python --version
72
- Python 3.8.7
73
+ Python 3.9.22
73
74
74
75
$ python3 --version
75
- Python 3.8.7
76
+ Python 3.9.22
76
77
77
- $ python3.8 --version
78
- Python 3.8.7
78
+ $ python3.9 --version
79
+ Python 3.9.22
79
80
```
80
81
5 . Here, we're using the ** python** command from above to make sure we're installing with the right
81
82
version. Use whichever alias provided the desired Python version.
@@ -89,11 +90,11 @@ $ python awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
89
90
7 . If you wish, you may verify that the newly installed copy of the AWS CLI tool, ** aws** , is
90
91
using the correct version of Python. The ** aws --version** command reports the ** aws** tool's
91
92
version number, followed by the version of Python it's running under, then the operating system
92
- version and the version of botocore. As long as the Python version is at least 3.8 ,
93
+ version and the version of botocore. As long as the Python version is at least 3.9 ,
93
94
you're ready to go:
94
95
``` bash
95
96
$ aws --version
96
- aws-cli/1.18.191 Python/3.8.7 Darwin/19.6.0 botocore/1.19.31
97
+ aws-cli/1.18.191 Python/3.9.22 Darwin/19.6.0 botocore/1.19.31
97
98
```
98
99
99
100
## If you're unable to upgrade to Python 3
0 commit comments