quickstart-standard-windows-environment.md 4.4 KB
Newer Older
D
duangavin123 已提交
1
# Setting Up a Windows Development Environment<a name="EN-US_TOPIC_0000001216019037"></a>
M
mamingshuai 已提交
2

D
duangavin123 已提交
3 4 5 6
System requirements:

-   OS: 64-bit Windows 10
-   User name: cannot contain Chinese characters
M
mamingshuai 已提交
7

D
duangavin123 已提交
8
## Installing DevEco Device Tool<a name="en-us_topic_0000001058091994_section10761564496"></a>
M
mamingshuai 已提交
9

D
duangavin123 已提交
10
DevEco Device Tool is installed in Visual Studio Code as a plug-in and depends on Python, Node.js, and HPM for running.
M
mamingshuai 已提交
11

D
duangavin123 已提交
12
DevEco Device Tool supports integrated installation. The DevEco Device Tool setup wizard checks whether the adaptation versions of Visual Studio Code, Python, Node.js and HPM tools have been installed. If any of the tools is not installed, you'll be prompted to select the tool to be automatically installed.
M
mamingshuai 已提交
13

D
duangavin123 已提交
14
>![](../public_sys-resources/icon-note.gif) **NOTE:** 
D
duangavin123 已提交
15
>Before installing DevEco Device Tool, make sure the user name of the host does not contain Chinese characters. Otherwise, the  **DevEco Home**  page will be stuck loading and the DevEco Device Tool cannot work.
M
mamingshuai 已提交
16

D
duangavin123 已提交
17 18 19 20
1.  Log in to the  [HarmonyOS Device website](https://device.harmonyos.com/cn/ide#download_beta)  with your HUAWEI ID and download DevEco Device Tool V3.0 Beta1 or a later version. If you do not have a HUAWEI ID,  [register](https://developer.huawei.com/consumer/en/doc/start/registration-and-verification-0000001053628148)  one first.
2.  Decompress the DevEco Device Tool package, double-click the installer, and then click  **Next**.
3.  Set the installation path of DevEco Device Tool and click  **Next**.
4.  When prompted, select the tools to be automatically installed and click  **Next**.
M
mamingshuai 已提交
21

D
duangavin123 已提交
22
    ![](figures/snap28.png)
M
mamingshuai 已提交
23

D
duangavin123 已提交
24 25
    >![](../public_sys-resources/icon-note.gif) **NOTE:** 
    >When the setup wizard detects that a compatible Python version has been installed, it prompts you to select the installed Python version or download the recommended Python version.
M
mamingshuai 已提交
26

D
duangavin123 已提交
27
5.  In the dialog box shown below, click  **Next**  to download and install the tools.
M
mamingshuai 已提交
28

D
duangavin123 已提交
29
    ![](figures/snap8.png)
M
mamingshuai 已提交
30

D
duangavin123 已提交
31
6.  In the displayed Python setup wizard, select  **Add Python 3.8 to PATH**  and click  **Install Now**. After the installation is complete, click  **Close**.
M
mamingshuai 已提交
32

D
duangavin123 已提交
33 34 35
    >![](../public_sys-resources/icon-note.gif) **NOTE:** 
    >If you have selected the compatible Python version installed on your device, the Python setup wizard will not be displayed. In this case, you skip this step.
    >If DevEco Device Tool 2.1 Release is installed, the Python version must be 3.8.x. If DevEco Device Tool V3.0 Beta1 or a later version is installed, the Python version must be 3.8.x or 3.9.x.
M
mamingshuai 已提交
36

D
duangavin123 已提交
37
    ![](figures/snap34.png)
M
mamingshuai 已提交
38

D
duangavin123 已提交
39
7.  In the Visual Studio Code setup wizard, install Visual Studio Code as prompted. During the installation, select  **Add to PATH \(requires shell restart\)**.
D
duangavin123 已提交
40 41

    >![](../public_sys-resources/icon-note.gif) **NOTE:** 
D
duangavin123 已提交
42
    >If you are using the correct version of Visual Studio Code, the Visual Studio Code setup wizard will not be displayed. In this case, you skip this step.
D
duangavin123 已提交
43

D
duangavin123 已提交
44
    ![](figures/snap33.png)
D
duangavin123 已提交
45

D
duangavin123 已提交
46
8.  In the Node.js setup wizard, retain the default settings and click  **Next**  until  **Finish**  is displayed. During the installation, Node.js will automatically set the system Path environment variable to the installation directory of  **node.exe**.
D
duangavin123 已提交
47

D
duangavin123 已提交
48 49
    >![](../public_sys-resources/icon-note.gif) **NOTE:** 
    >If you are using the correct version of Node.js, the Node.js setup wizard will not be displayed. In this case, you skip this step.
D
duangavin123 已提交
50

D
duangavin123 已提交
51
9.  Wait for the DevEco Device Tool setup wizard to automatically install the HPM and DevEco Device Tool. After the installation is complete, click  **Finish**  to close the setup wizard.
M
mamingshuai 已提交
52

D
duangavin123 已提交
53 54
    >![](../public_sys-resources/icon-note.gif) **NOTE:** 
    >If you are using the correct version of HPM, the setup wizard does not download or install HPM.
M
mamingshuai 已提交
55

D
duangavin123 已提交
56
10. Start Visual Studio Code. The C/C++ and CodeLLDB plug-ins on which DevEco Device Tool depends will be automatically installed. After the installation is complete, click  ![](figures/button.png)  on the left of Visual Studio Code to check whether C/C++, CodeLLDB, and DevEco Device Tool are included in the  **INSTALLED**  list.
M
mamingshuai 已提交
57

D
duangavin123 已提交
58
    >![](../public_sys-resources/icon-note.gif) **NOTE:** 
M
mamingshuai 已提交
59 60
    >If the C/C++ and CodeLLDB plug-ins fail to be installed, DevEco Device Tool cannot run properly. To solve the issue, see  [Installing the C/C++ and CodeLLDB Plug-ins Offline](https://device.harmonyos.com/en/docs/ide/user-guides/offline_plugin_install-0000001074376846).

D
duangavin123 已提交
61
    ![](figures/deveco-device-tool-install-sucessful.png)
M
mamingshuai 已提交
62 63