This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge-2l:npu:rknn-sdk-quick-start [2026/05/31 23:35] nick |
products:sbc:edge-2l:npu:rknn-sdk-quick-start [2026/05/31 23:55] (current) nick [Run RKNN Python demo] |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Prepare development environment ===== | ===== Prepare development environment ===== | ||
| The version information we are using is as follows: | The version information we are using is as follows: | ||
| - | * Host PC Python: 3.10 | + | * Host PC Python: 3.8 |
| * rknn-toolkit2: | * rknn-toolkit2: | ||
| * rknn model zoo: 2.3.2 | * rknn model zoo: 2.3.2 | ||
| Line 29: | Line 29: | ||
| === Install Python - Host PC === | === Install Python - Host PC === | ||
| - | If the Python 3.10 environment is not installed on your system, or if there are multiple versions of Python installed, it is recommended to use Miniforge Conda to create a new Python 3.10 environment. | + | If the Python 3.8 environment is not installed on your system, or if there are multiple versions of Python installed, it is recommended to use Miniforge Conda to create a new Python 3.8 environment. |
| === Install Miniforge Conda - Host PC === | === Install Miniforge Conda - Host PC === | ||
| Line 49: | Line 49: | ||
| $ source ~/ | $ source ~/ | ||
| ``` | ``` | ||
| - | Create a Python 3.10 environment named '' | + | Create a Python 3.8 environment named '' |
| ```shell | ```shell | ||
| - | $ conda create -n py310Toolkit2.3.2 python=3.10 | + | $ conda create -n py38Toolkit2.3.2 python=3.8 |
| ``` | ``` | ||
| - | Activate the '' | + | Activate the '' |
| ```shell | ```shell | ||
| - | $ conda activate | + | $ conda activate |
| ``` | ``` | ||
| === Install RKNN-Toolkit2 - Host PC === | === Install RKNN-Toolkit2 - Host PC === | ||
| Line 62: | Line 62: | ||
| ```shell | ```shell | ||
| $ cd rknn-toolkit2/ | $ cd rknn-toolkit2/ | ||
| - | $ pip3 install -r requirements_cp310-2.3.2.txt | + | $ pip3 install -r requirements_cp38-2.3.2.txt |
| - | $ pip3 install ./ | + | $ pip3 install ./ |
| ``` | ``` | ||
| Line 189: | Line 189: | ||
| Modify the demo code: | Modify the demo code: | ||
| - | ```python | + | ```diff |
| diff --git a/ | diff --git a/ | ||
| index 21b4132..46b24d4 100644 | index 21b4132..46b24d4 100644 | ||