05 Experiment Environment Setup Guide
05 Experiment Environment Setup Guide
AI
Experiment Environment
Setup Guide
Description
This document consists of three parts:
⚫ Lab environment setup on Windows.
Contents
Note: Modules must be installed in different virtual environments separately. For example,
you must install MindSpore in environment B if you want to use it in the environment, even
though you have installed MindSpore in environment A. This also applies to other modules
like Spyder and Jupyter Notebook.
Step 1 Type cmd in the search box on the taskbar and open Command Prompt.
Virtual environments ensure that different environments do not conflict with each other.
The relationship between virtual environments is similar to that between VMs. Run the
conda create -n MS17 python=3.7 command to create a virtual environment. You can customize
the environment name (text in red). python=3.7 indicates the Python version used in the
HCIA-AI V3.5 Lab Environment Setup Guide Page 10
created virtual environment. If the minor version is not specified, the latest minor version
of the specified major version is installed. For example, to use Python of minor version 7
and patch version 10, enter python=3.7.10.
Enter y when prompted during installation.
HCIA-AI V3.5 Lab Environment Setup Guide Page 11
After the installation is complete, run the conda create -n MS17 python=3.7 command to
activate the virtual environment. Text in red is the name of the virtual environment created
in Step 1. After the activation, the name of the virtual environment will be displayed before
the command prompt.
./Anaconda3-2021.11-Linux-x86_64.sh
HCIA-AI V3.5 Lab Environment Setup Guide Page 16
During the installation, press Enter to read the installation terms, and manually enter yes
to agree to the installation terms. The default value is no. After accepting the terms,
confirm the Anaconda3 installation path by specifying an installation path or pressing Enter
to use the default path, which is the user's home directory.
3.1 Overview
Huawei Cloud provides abundant cloud resources and cloud services to meet your
requirements. This document describes how to apply for resources on Huawei Cloud,
including account application and obtaining AK and SK, and introduces Huawei Cloud
services.
Upon studying this document, you will be able to:
⚫ Understand AI development environments.
⚫ Apply for an AI development environment.
⚫ Test an established environment.
3.2.1 Procedure
Step 1 Register for Huawei Cloud.
Log in to the Huawei Cloud console, hover over the account name and click My Credentials.
On the My Credentials page, click Access Keys on the left. Then, click Create Access Key to
create an access key. Each access key can be downloaded only once.
HCIA-AI V3.5 Lab Environment Setup Guide Page 22