FT_DSP.gitlink.net/master/html/quickstart/test.html

181 lines
10 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html class="writer-html5" lang="zh-CN" data-content_root="../">
<head>
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Conda方式安装MindSpore CPU版本-Windows &mdash; MindSpore Signal+ 使用手册 alpha 文档</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=03e43079" />
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" />
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=406e4f49"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/translations.js?v=beaddf03"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="索引" href="../genindex.html" />
<link rel="search" title="搜索" href="../search.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home">
MindSpore Signal+ 使用手册
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="搜索文档" aria-label="搜索文档" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="导航菜单">
<ul>
<li class="toctree-l1"><a class="reference internal" href="index.html">快速入门</a></li>
<li class="toctree-l1"><a class="reference internal" href="../appdevelop/index.html">应用开发</a></li>
<li class="toctree-l1"><a class="reference internal" href="../functionlib/index.html">算子库支持</a></li>
<li class="toctree-l1"><a class="reference internal" href="../refdoc/index.html">参考资料</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="移动版导航菜单" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">MindSpore Signal+ 使用手册</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="页面导航">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Conda方式安装MindSpore CPU版本-Windows</li>
<li class="wy-breadcrumbs-aside">
<a href="../_sources/quickstart/test.md.txt" rel="nofollow"> 查看页面源码</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="condamindspore-cpu-windows">
<h1>Conda方式安装MindSpore CPU版本-Windows<a class="headerlink" href="#condamindspore-cpu-windows" title="Link to this heading"></a></h1>
<!-- TOC -->
<ul class="simple">
<li><p><a class="reference internal" href="#condamindspore-cpu-windows">Conda方式安装MindSpore CPU版本-Windows</a></p>
<ul>
<li><p><a class="reference internal" href="#id1">确认系统环境信息</a></p></li>
<li><p><a class="reference internal" href="#conda">创建并进入Conda虚拟环境</a></p></li>
<li><p><a class="reference internal" href="#mindspore">安装MindSpore</a></p></li>
<li><p><a class="reference internal" href="#id2">验证是否成功安装</a></p></li>
<li><p><a class="reference internal" href="#id3">升级MindSpore版本</a></p></li>
</ul>
</li>
</ul>
<!-- /TOC -->
<p><a class="reference external" href="https://gitee.com/mindspore/docs/blob/master/install/mindspore_cpu_win_install_conda.md"><img alt="查看源文件" src="https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg" /></a></p>
<p><a class="reference external" href="https://docs.conda.io/en/latest/">Conda</a>是一个开源跨平台语言无关的包管理与环境管理系统,允许用户方便地安装不同版本的二进制软件包,以及该计算平台需要的所有库。</p>
<p>本文档介绍如何在CPU环境的Windows系统上使用Conda方式快速安装MindSpore。</p>
<section id="id1">
<h2>确认系统环境信息<a class="headerlink" href="#id1" title="Link to this heading"></a></h2>
<ul class="simple">
<li><p>确认安装Windows 10是x86架构64位操作系统。</p></li>
<li><p>确认安装与当前系统兼容的Conda版本。</p>
<ul>
<li><p>如果您喜欢Conda提供的完整能力可以选择下载<a class="reference external" href="https://repo.anaconda.com/archive/">Anaconda3</a></p></li>
<li><p>如果您需要节省磁盘空间或者喜欢自定义安装Conda软件包可以选择下载<a class="reference external" href="https://repo.anaconda.com/miniconda/">Miniconda3</a></p></li>
</ul>
</li>
</ul>
</section>
<section id="conda">
<h2>创建并进入Conda虚拟环境<a class="headerlink" href="#conda" title="Link to this heading"></a></h2>
<p>在Windows上使用Anaconda请通过<code class="docutils literal notranslate"><span class="pre">开始</span> <span class="pre">|</span> <span class="pre">Anaconda3</span> <span class="pre">|</span> <span class="pre">Anaconda</span> <span class="pre">Promt</span></code>打开Anaconda命令行。</p>
<p>根据您希望使用的Python版本创建对应的Conda虚拟环境并进入虚拟环境。
如果您希望使用Python3.9.11版本:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>create<span class="w"> </span>-c<span class="w"> </span>conda-forge<span class="w"> </span>-n<span class="w"> </span>mindspore_py39<span class="w"> </span>-c<span class="w"> </span>conda-forge<span class="w"> </span><span class="nv">python</span><span class="o">=</span><span class="m">3</span>.9.11
conda<span class="w"> </span>activate<span class="w"> </span>mindspore_py39
</pre></div>
</div>
</section>
<section id="mindspore">
<h2>安装MindSpore<a class="headerlink" href="#mindspore" title="Link to this heading"></a></h2>
<p>确认您处于Conda虚拟环境中并执行以下命令安装最新版本的MindSpore。如需安装其他版本可参考<a class="reference external" href="https://www.mindspore.cn/versions">版本列表</a><code class="docutils literal notranslate"><span class="pre">conda</span> <span class="pre">install</span> <span class="pre">mindspore=</span></code>后指定版本号。</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>install<span class="w"> </span>mindspore<span class="w"> </span>-c<span class="w"> </span>mindspore<span class="w"> </span>-c<span class="w"> </span>conda-forge
</pre></div>
</div>
<p>在联网状态下安装Conda安装包时会自动下载MindSpore安装包的依赖项依赖项详情参见<a class="reference external" href="https://gitee.com/mindspore/mindspore/blob/master/setup.py">setup.py</a>中的required_package其余情况需自行安装依赖。</p>
</section>
<section id="id2">
<h2>验证是否成功安装<a class="headerlink" href="#id2" title="Link to this heading"></a></h2>
<p>执行以下命令:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>-c<span class="w"> </span><span class="s2">&quot;import mindspore;mindspore.set_device(device_target=&#39;CPU&#39;);mindspore.run_check()&quot;</span>
</pre></div>
</div>
<p>如果输出:</p>
<div class="highlight-text notranslate"><div class="highlight"><pre><span></span>MindSpore version: 版本号
The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully!
</pre></div>
</div>
<p>说明MindSpore安装成功了。</p>
</section>
<section id="id3">
<h2>升级MindSpore版本<a class="headerlink" href="#id3" title="Link to this heading"></a></h2>
<p>从MindSpore 2.4.x及以下版本升级到MindSpore 2.5.x及以上版本时需要先手动卸载旧版本</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>remove<span class="w"> </span>mindspore-cpu
</pre></div>
</div>
<p>然后安装新版本:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>install<span class="w"> </span>mindspore<span class="w"> </span>-c<span class="w"> </span>mindspore<span class="w"> </span>-c<span class="w"> </span>conda-forge
</pre></div>
</div>
<p>从MindSpore 2.5.x版本升级时执行以下命令</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>conda<span class="w"> </span>update<span class="w"> </span>mindspore<span class="w"> </span>-c<span class="w"> </span>mindspore<span class="w"> </span>-c<span class="w"> </span>conda-forge
</pre></div>
</div>
</section>
</section>
</div>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>&#169; 版权所有 2025 - 2025, NUDT-674。</p>
</div>
利用 <a href="https://www.sphinx-doc.org/">Sphinx</a> 构建,使用的
<a href="https://github.com/readthedocs/sphinx_rtd_theme">主题</a>
<a href="https://readthedocs.org">Read the Docs</a> 开发.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>