Skip to content

Commit 0f2e4b8

Browse files
authored
Update cli-reqs for python3 (#1315)
Use python3 to avoid bugs like ARMmbed/mbed-os#12622 and ARMmbed/mbed-os#12848.
1 parent fe37534 commit 0f2e4b8

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

docs/tools/CLI/cli-setup/cli-reqs.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,13 @@ There is no installer for Linux; please follow the [manual installation guide](.
1515

1616
### Instructions for Windows
1717

18-
1. Download and install [Python 2.7.x](https://www.python.org/downloads/windows/) (which includes `pip`).
18+
1. Download and install [Python 3.7.x](https://www.python.org/downloads/windows/) (which includes `pip`).
1919
1. Download and install [Git](https://git-scm.com/downloads) (versions 1.9.5 or later are supported).
2020
1. Download and install [Mercurial](https://www.mercurial-scm.org/downloads) (versions 2.2.2 or later are supported).
2121

2222
### Instructions for macOS
2323

24-
1. macOS 10.8 and later comes with Python 2.7 preinstalled.
25-
26-
- If you are using the preinstalled version but need to install `pip`, you can run the following command (taken from the [pip installation guide](https://pip.pypa.io/en/stable/installing/)):
27-
28-
```
29-
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
30-
python get-pip.py
31-
```
32-
33-
- If you are running an earlier version of macOS, download and install [Python from the official website](https://www.python.org/downloads/mac-osx/). This package includes `pip`.
34-
24+
1. If your version of macOS does not come with Python 3, download and install [Python from the official website](https://www.python.org/downloads/mac-osx/). This package includes `pip`.
3525
1. Download and install [Git](https://git-scm.com/downloads) (versions 1.9.5 or later are supported).
3626
1. Download and install [Mercurial](https://www.mercurial-scm.org/downloads) (versions 2.2.2 or later are supported).
3727

@@ -42,7 +32,7 @@ Linux distributions typically manage software through package managers. The spec
4232
As an example, the following is a command to install all dependencies on Ubuntu:
4333

4434
```
45-
sudo apt install python2.7 python-pip git mercurial
35+
sudo apt install python3 python3-pip git mercurial
4636
```
4737

4838
## 2. Install Mbed CLI
@@ -52,15 +42,15 @@ sudo apt install python2.7 python-pip git mercurial
5242
To install Mbed CLI with pip:
5343

5444
```
55-
pip install mbed-cli
45+
python3 -m pip install mbed-cli
5646
```
5747

5848
To verify Mbed CLI installed correctly, run `mbed --help`.
5949

6050
To update Mbed CLI, run:
6151

6252
```
63-
pip install -U mbed-cli
53+
python3 -m pip install -U mbed-cli
6454
```
6555

6656
## 3. Install a compiler

0 commit comments

Comments
 (0)