Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,22 @@ cd rt-thread/bsp/qemu-vexpress-a9/

### 3.2 Configure the environment of Env tool

#### 3.2.1 Remap python command
#### 3.2.1 Provide the python command

We need to remap `python` command as python3 by default.

Using `whereis` command to identify your python3's version:

![python3-version](figures/python3-version.png)

For instance, as you can see, in my computer, the python3's version is python 3.9. You need to identify python3's version in your computer. Then, we remap the `python` command as python3 by default:
Some tools invoke `python` rather than `python3`. On distributions that
ship only `python3`, install the package that provides the `python`
command:

```shell
sudo rm -rf /usr/bin/python3
sudo rm -rf /usr/bin/python
sudo ln -s /usr/bin/python3.9 /usr/bin/python3
sudo ln -s /usr/bin/python3.9 /usr/bin/python
sudo apt install python-is-python3
```

> **Do not** remove `/usr/bin/python3` and re-create it by hand. On
> Debian and Ubuntu, `apt` and a large part of the system tooling are
> written in Python and resolve the interpreter through that path;
> deleting it leaves the machine unable to install packages, including
> the packages needed to put it back.

### 3.3 Install Env and Configure BSP

Type following the command under `bsp/qemu-vexpress-a9` folder:
Expand Down
Loading