forked from FT_DSP/FT_DSP.gitlink.net
285 lines
18 KiB
HTML
285 lines
18 KiB
HTML
|
||
|
||
<!DOCTYPE html>
|
||
<html class="writer-html5" lang="zh-CN">
|
||
<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>环境安装 — 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" />
|
||
<link rel="stylesheet" type="text/css" href="../_static/table.css?v=72b86d3e" />
|
||
|
||
|
||
<script src="../_static/jquery.js?v=5d32c60e"></script>
|
||
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
|
||
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js?v=595569a8"></script>
|
||
<script src="../_static/doctools.js?v=888ff710"></script>
|
||
<script src="../_static/sphinx_highlight.js?v=4825356b"></script>
|
||
<script src="../_static/translations.js?v=beaddf03"></script>
|
||
<script src="../_static/table.js?v=99ed15ba"></script>
|
||
<script src="../_static/js/theme.js"></script>
|
||
<link rel="index" title="索引" href="../genindex.html" />
|
||
<link rel="search" title="搜索" href="../search.html" />
|
||
<link rel="next" title="HelloDSP" href="hellodsp.html" />
|
||
<link rel="prev" title="快速入门" href="index.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 class="current">
|
||
<li class="toctree-l1 current"><a class="reference internal" href="index.html">快速入门</a><ul class="current">
|
||
<li class="toctree-l2 current"><a class="current reference internal" href="#">环境安装</a><ul>
|
||
<li class="toctree-l3"><a class="reference internal" href="#mindspore-radar">安装MindSpore Radar 与依赖软件</a><ul>
|
||
<li class="toctree-l4"><a class="reference internal" href="#python">安装Python</a></li>
|
||
<li class="toctree-l4"><a class="reference internal" href="#mindspore">安装MindSpore</a></li>
|
||
<li class="toctree-l4"><a class="reference internal" href="#mindradar">安装MindRadar</a></li>
|
||
<li class="toctree-l4"><a class="reference internal" href="#toolchain">配置交叉编译工具链</a></li>
|
||
<li class="toctree-l4"><a class="reference internal" href="#yhft-ide">安装YHFT-IDE</a></li>
|
||
<li class="toctree-l4"><a class="reference internal" href="#cmake">安装CMake</a></li>
|
||
<li class="toctree-l4"><a class="reference internal" href="#netron">安装Netron</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l2"><a class="reference internal" href="hellodsp.html">HelloDSP</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="overview.html">整体概览</a></li>
|
||
</ul>
|
||
</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"><a href="index.html">快速入门</a></li>
|
||
<li class="breadcrumb-item active">环境安装</li>
|
||
<li class="wy-breadcrumbs-aside">
|
||
<a href="../_sources/quickstart/installation.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="id1">
|
||
<h1>环境安装<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h1>
|
||
<section id="mindspore-radar">
|
||
<h2>安装MindSpore Radar 与依赖软件<a class="headerlink" href="#mindspore-radar" title="此标题的永久链接"></a></h2>
|
||
<table class="docutils align-default">
|
||
<thead>
|
||
<tr class="row-odd"><th class="head"><p>软件名称</p></th>
|
||
<th class="head"><p>版本</p></th>
|
||
<th class="head"><p>作用</p></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr class="row-even"><td><p>Windows</p></td>
|
||
<td><p>7/10/11</p></td>
|
||
<td><p>编译和运行MindSpore的操作系统</p></td>
|
||
</tr>
|
||
<tr class="row-odd"><td><p><a class="reference internal" href="#install-python"><span class="std std-ref">Python</span></a></p></td>
|
||
<td><p>3.8</p></td>
|
||
<td><p>MindSpore的使用依赖Python环境</p></td>
|
||
</tr>
|
||
<tr class="row-even"><td><p><a class="reference internal" href="#install-mindspore"><span class="std std-ref">MindSpore</span></a></p></td>
|
||
<td><p>2.3.1</p></td>
|
||
<td><p>MindRadar依赖的底层框架</p></td>
|
||
</tr>
|
||
<tr class="row-odd"><td><p><a class="reference internal" href="#install-mindradar"><span class="std std-ref">MindRadar</span></a></p></td>
|
||
<td><p>0.0.0</p></td>
|
||
<td><p>数字信号处理套件</p></td>
|
||
</tr>
|
||
<tr class="row-even"><td><p><a class="reference internal" href="#toolchain"><span class="std std-ref">arm-linux-gnueabihf</span></a></p></td>
|
||
<td><p>7.5.0</p></td>
|
||
<td><p>用于编译MindSpore Signal+ C++ 应用的编译器</p></td>
|
||
</tr>
|
||
<tr class="row-odd"><td><p><a class="reference internal" href="#install-yhft-ide"><span class="std std-ref">YHFT-IDE</span></a></p></td>
|
||
<td><p>0.0.1</p></td>
|
||
<td><p>集成开发环境</p></td>
|
||
</tr>
|
||
<tr class="row-even"><td><p><a class="reference internal" href="#install-cmake"><span class="std std-ref">CMake</span></a></p></td>
|
||
<td><p>3.30.5</p></td>
|
||
<td><p>强大的软件构建系统</p></td>
|
||
</tr>
|
||
<tr class="row-odd"><td><p><a class="reference internal" href="#install-netron"><span class="std std-ref">Netron</span></a></p></td>
|
||
<td><p>6.2.0</p></td>
|
||
<td><p>模型可视化工具</p></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<p>上述所有软件包可以通过在线链接提取:<a class="reference external" href="https://">软件资源包</a></p>
|
||
<section id="python">
|
||
<span id="install-python"></span><h3>安装Python<a class="headerlink" href="#python" title="此标题的永久链接"></a></h3>
|
||
<p>本文提供两种不同的安装方式,自行选择合适的方式安装。</p>
|
||
<section id="id2">
|
||
<h4>1.安装包方式安装<a class="headerlink" href="#id2" title="此标题的永久链接"></a></h4>
|
||
<section id="id3">
|
||
<h5>1.1 下载安装包<a class="headerlink" href="#id3" title="此标题的永久链接"></a></h5>
|
||
<p>根据机器的操作系统版本,在官网下载32位或64位windows版本的python3.8安装包:</p>
|
||
<p>64位:<a class="reference external" href="https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe">https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe</a></p>
|
||
<p>32位:<a class="reference external" href="https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe">https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe</a></p>
|
||
</section>
|
||
<section id="id4">
|
||
<h5>1.2 开始安装<a class="headerlink" href="#id4" title="此标题的永久链接"></a></h5>
|
||
<p>双击打开python安装包,选择Customize installation方式安装,并勾选<code class="docutils literal notranslate"><span class="pre">Add</span> <span class="pre">python3.8</span> <span class="pre">to</span> <span class="pre">PATH</span></code>。如下图:</p>
|
||
<img src="../_static/python_install_step1.png" alt="python_install_step1" width="auto"/>
|
||
<p>接着按默认选项点击下一步,可以根据需求选择安装路径,以及是否安装给所有用户。如下图:</p>
|
||
<img src="../_static/python_install_step2.png" alt="python_install_step2" width="auto"/>
|
||
<p>安装成功界面如下:</p>
|
||
<img src="../_static/python_install_success.png" alt="python_install_success" width="auto"/>
|
||
</section>
|
||
<section id="id5">
|
||
<h5>1.3 验证安装<a class="headerlink" href="#id5" title="此标题的永久链接"></a></h5>
|
||
<p>可以在cmd命令窗口通过以下命令查看Python版本。</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>--version
|
||
</pre></div>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
<section id="conda">
|
||
<h4>2.Conda方式安装<a class="headerlink" href="#conda" title="此标题的永久链接"></a></h4>
|
||
<p><a class="reference external" href="https://docs.conda.io/en/latest/">Conda</a>是一个开源跨平台语言无关的包管理与环境管理系统,允许用户方便地安装不同版本的二进制软件包,以及该计算平台需要的所有库。</p>
|
||
<ul class="simple">
|
||
<li><p>确认安装Windows是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 id="id6">
|
||
<h5>创建并进入Conda虚拟环境<a class="headerlink" href="#id6" title="此标题的永久链接"></a></h5>
|
||
<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.8.10版本:</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_py38<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>.8.10
|
||
conda<span class="w"> </span>activate<span class="w"> </span>mindspore_py38
|
||
</pre></div>
|
||
</div>
|
||
</section>
|
||
</section>
|
||
</section>
|
||
<section id="mindspore">
|
||
<span id="install-mindspore"></span><h3>安装MindSpore<a class="headerlink" href="#mindspore" title="此标题的永久链接"></a></h3>
|
||
<p>通过<code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">mindspore-xxx-win_amd64.whl</span></code>命令安装MindSpore。验证是否成功安装,执行以下命令:</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">"import mindspore;mindspore.set_context(device_target='CPU');mindspore.run_check()"</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>
|
||
<div class="admonition note">
|
||
<p class="admonition-title">备注</p>
|
||
<p>在安装mindspore过程中会自动下载依赖库,如果下载失败,可以尝试手动安装依赖库。提供的软件资源包中包含了依赖库,进入<code class="docutils literal notranslate"><span class="pre">third-party</span></code>文件夹,通过<code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">-r</span> <span class="pre">requirements.txt</span></code>命令批量安装所有的依赖包。</p>
|
||
</div>
|
||
</section>
|
||
<section id="mindradar">
|
||
<span id="install-mindradar"></span><h3>安装MindRadar<a class="headerlink" href="#mindradar" title="此标题的永久链接"></a></h3>
|
||
<p>通过<code class="docutils literal notranslate"><span class="pre">pip</span> <span class="pre">install</span> <span class="pre">mindradar-xxx-py3-none-any.whl</span></code>命令安装MindRadar。验证是否成功安装,执行以下命令:</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">"import mindspore;import mindradar;from mindradar import ComplexAbs;"</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>如果没有报错,说明MindRadar安装成功了。</p>
|
||
</section>
|
||
<section id="toolchain">
|
||
<span id="id7"></span><h3>配置交叉编译工具链<a class="headerlink" href="#toolchain" title="此标题的永久链接"></a></h3>
|
||
<p>官网下载windows版本的交叉编译工具:
|
||
<a class="reference external" href="https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf.tar.xz">https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/arm-linux-gnueabihf/gcc-linaro-7.5.0-2019.12-i686-mingw32_arm-linux-gnueabihf.tar.xz</a></p>
|
||
<p>将下载好的交叉编译工具包解压到一个全英文的文件夹即可,后续编译MindSpore Signal+ C++ 应用时需要填写交叉编译工具包的绝对路径。</p>
|
||
</section>
|
||
<section id="yhft-ide">
|
||
<span id="install-yhft-ide"></span><h3>安装YHFT-IDE<a class="headerlink" href="#yhft-ide" title="此标题的永久链接"></a></h3>
|
||
<p>找到软件安装包,双击打开安装,同意条款;选择安装目录,点击下一步:</p>
|
||
<img src="../_static/yhft-ide_install.png" alt="yhft-ide_install" width="auto"/>
|
||
<p>然后一直按默认选项点下一步,直到点击安装。安装完成如下:</p>
|
||
<img src="../_static/yhft-ide_install_success.png" alt="yhft-ide_install_success" width="auto"/>
|
||
</section>
|
||
<section id="cmake">
|
||
<span id="install-cmake"></span><h3>安装CMake<a class="headerlink" href="#cmake" title="此标题的永久链接"></a></h3>
|
||
<p>CMake官网选择合适版本下载CMake安装包:<a class="reference external" href="https://cmake.org/download/">https://cmake.org/download/</a></p>
|
||
<p>双击打开安装包,会弹出如下界面,点击<code class="docutils literal notranslate"><span class="pre">Next</span></code>,进入下一步:</p>
|
||
<img src="../_static/cmake_install_step1.png" alt="cmake_install_step1" width="auto"/>
|
||
<p>同意CMake的条款,点<code class="docutils literal notranslate"><span class="pre">Next</span></code>按钮,进入下一步;</p>
|
||
<p>选中<code class="docutils literal notranslate"><span class="pre">Add</span> <span class="pre">CMake</span> <span class="pre">to</span> <span class="pre">the</span> <span class="pre">system</span> <span class="pre">PATH</span> <span class="pre">for</span> <span class="pre">the</span> <span class="pre">current</span> <span class="pre">user</span></code>,点击<code class="docutils literal notranslate"><span class="pre">Next</span></code>按钮:</p>
|
||
<img src="../_static/cmake_install_step2.png" alt="cmake_install_step2" width="auto"/>
|
||
<p>选择安装目录:</p>
|
||
<img src="../_static/cmake_install_step3.png" alt="cmake_install_step3" width="auto"/>
|
||
<p>点击<code class="docutils literal notranslate"><span class="pre">install</span></code>安装CMake,安装完成后点击<code class="docutils literal notranslate"><span class="pre">Finish</span></code>按钮。</p>
|
||
<img src="../_static/cmake_install_success.png" alt="cmake_install_step3" width="auto"/>
|
||
</section>
|
||
<section id="netron">
|
||
<span id="install-netron"></span><h3>安装Netron<a class="headerlink" href="#netron" title="此标题的永久链接"></a></h3>
|
||
<p>找到软件安装包,双击打开安装即可。</p>
|
||
</section>
|
||
</section>
|
||
</section>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="页脚">
|
||
<a href="index.html" class="btn btn-neutral float-left" title="快速入门" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> 上一页</a>
|
||
<a href="hellodsp.html" class="btn btn-neutral float-right" title="HelloDSP" accesskey="n" rel="next">下一页 <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||
</div>
|
||
|
||
<hr/>
|
||
|
||
<div role="contentinfo">
|
||
<p>© 版权所有 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> |