doc-exports/docs/modelarts/sdk-ref/modelarts_04_0005.html
Lai, Weijian 1ad28cc33e modelarts sdk-ref first version
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2023-03-01 15:24:28 +00:00

17 lines
3.3 KiB
HTML

<a name="modelarts_04_0005"></a><a name="modelarts_04_0005"></a>
<h1 class="topictitle1">Environment Preparations</h1>
<div id="body8662426"><p id="modelarts_04_0005__en-us_topic_0130654809_p57215282120">ModelArts SDK can be used in the following environments:</p>
<ul id="modelarts_04_0005__en-us_topic_0130654809_ul7544243182020"><li id="modelarts_04_0005__en-us_topic_0130654809_li1754412439204">ModelArts SDK has been integrated into ModelArts Notebook and can be directly used without session authentication.<p id="modelarts_04_0005__en-us_topic_0130654809_p66408408216"><a name="modelarts_04_0005__en-us_topic_0130654809_li1754412439204"></a><a name="en-us_topic_0130654809_li1754412439204"></a>On the ModelArts management console, access the <strong id="modelarts_04_0005__en-us_topic_0130654809_b143715371314">DevEnviron</strong> module, create a notebook instance, and directly call the ModelArts SDK APIs in the <strong id="modelarts_04_0005__en-us_topic_0130654809_b2104135117114">Terminal</strong> or Ipynb file. You can call the SDK in a notebook instance to perform operations such as OBS management, job management, model management, and service management by referring to the API reference.</p>
</li><li id="modelarts_04_0005__en-us_topic_0130654809_li187401462209">ModelArts SDK can be installed and configured in the local Windows- or Linux-based environment.<p id="modelarts_04_0005__en-us_topic_0130654809_p165417382372"><a name="modelarts_04_0005__en-us_topic_0130654809_li187401462209"></a><a name="en-us_topic_0130654809_li187401462209"></a>Download and install Python 2 or Python 3 from the <a href="https://www.python.org/" target="_blank" rel="noopener noreferrer">official website of Python</a> (Python 2.7, Python 3.6, Python 3.7, or later is recommended), and configure a Python runtime environment.</p>
<div class="note" id="modelarts_04_0005__en-us_topic_0130654809_note844285713323"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="modelarts_04_0005__en-us_topic_0130654809_ul17535171573410"><li id="modelarts_04_0005__en-us_topic_0130654809_li17784414238">After Python is installed, you can enter <span class="parmname" id="modelarts_04_0005__en-us_topic_0130654809_parmname87813416234"><b>python</b></span> or <span class="parmname" id="modelarts_04_0005__en-us_topic_0130654809_parmname1421434016304"><b>python3</b></span> in the command line interface (CLI) and press <strong id="modelarts_04_0005__en-us_topic_0130654809_b12550918133">Enter</strong> to view the Python version and enter the Python environment.</li><li id="modelarts_04_0005__en-us_topic_0130654809_li5725131712347">In the Windows-based environment, if a message is displayed indicating that the command is not an internal or external command, add the Python and pip installation paths to <strong id="modelarts_04_0005__en-us_topic_0130654809_b1885675723012">Path</strong> in the environment variable. The pip installation path is usually the <strong id="modelarts_04_0005__en-us_topic_0130654809_b172920451547">Scripts</strong> folder in the directory where Python is located.</li></ul>
</div></div>
</li></ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="modelarts_04_0003.html">Preparations</a></div>
</div>
</div>