This function is implemented based on the conda. Conda is a package management and environment management system. It is one of the recommended installation modes for MindSpore.
Choose File > New Project.
Select MindSpore.
Download and install Miniconda. If conda has been installed, skip this step.
3.1 Click Install Miniconda Automatically.
3.2 Select an installation folder. You are advised to use the default path to install conda.
3.3 Click Install.
3.4 Wait for the installation to complete.
3.5 Restart PyCharm as prompted or restart PyCharm later. Note: The following steps can be performed only after PyCharm is restarted.
If Conda executable is not automatically filled, select the path of the installed conda.
Create a conda environment or select an existing conda environment.
Create a conda environment. You are advised to use the default path to create the conda environment. Due to PyCharm restrictions on Linux, you can only select the default directory.
Select an existing conda environment in PyCharm.
Select a hardware environment and a MindSpore best practice template.
6.1 Select a hardware environment.
6.2 Select a best practice template. The best practice template provides some sample projects for beginners to get familiar with MindSpore. The best practice template can be run directly.
Click Create to create a project and wait until MindSpore is successfully downloaded and installed.
7.1 Click Create to create a MindSpore project.
7.2 The conda environment is being created.
7.3 MindSpore is being configured through conda.
Wait till the MindSpore project is created.
Check whether the MindSpore project is successfully created.
Click Terminal, enter python -c "import mindspore;mindspore.run_check()", and check the output. If the version number shown in the following figure is displayed, the MindSpore environment is available.
If you select a best practice template, you can run the best practice to test the MindSpore environment.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。