{"id":46605,"date":"2025-07-30T03:37:41","date_gmt":"2025-07-29T19:37:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/46605.html"},"modified":"2025-07-30T03:37:41","modified_gmt":"2025-07-29T19:37:41","slug":"%e5%8d%8e%e4%b8%ba%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%a9%b1%e5%8a%a8%e3%80%81%e7%8e%af%e5%a2%83%e5%ae%89%e8%a3%85%e5%8f%8a%e6%a8%a1%e5%9e%8b%e8%bd%ac%e6%8d%a2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/46605.html","title":{"rendered":"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362"},"content":{"rendered":"<p>\u5199\u5728\u524d\u9762\u7684\u8bdd&#xff1a;<\/p>\n<p>\u53ef\u80fd\u5927\u591a\u6570\u4eba\u5728\u8bad\u7ec3\u6a21\u578b\u65f6\u4f7f\u7528\u7684\u670d\u52a1\u5668\u90fd\u662f\u82f1\u4f1f\u8fbe\u663e\u5361\u7684&#xff0c;\u82e5\u8981\u5c06\u5728\u82f1\u4f1f\u8fbe\u663e\u5361\u4e0a\u8bad\u7ec3\u7684\u6a21\u578b\u8fc1\u79fb\u5230\u534e\u4e3a\u670d\u52a1\u5668\u4e0a&#xff0c;\u8be5\u5982\u4f55\u64cd\u4f5c&#xff1f;\u4ee5\u4e0b\u6d41\u7a0b\u4e3a\u5728\u53ea\u88c5\u6709\u7cfb\u7edf\u7684\u534e\u4e3a\u670d\u52a1\u5668\u4e0a\u7684\u64cd\u4f5c&#xff0c;\u6574\u4e2a\u6d41\u7a0b\u53c2\u8003\u81ea<span style=\"color:#4da8ee\">\u6607\u817e\u793e\u533a<\/span>&#xff0c;\u56e0\u6b64\u5efa\u8bae\u5927\u5bb6\u5230\u6607\u817e\u793e\u533a\u67e5\u627e\u76f8\u5e94\u7684\u64cd\u4f5c\u6587\u6863\u3002\u6b64\u5916\u5c06\u64cd\u4f5c\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898\u4e00\u5e76\u5199\u5165\u3002<\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u4e00\u3001\u68c0\u67e5\u5b89\u88c5\u73af\u5883<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u68c0\u6d4b\u5361\u662f\u5426\u6b63\u5e38\u5728\u4f4d<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4ee5root\u7528\u6237\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u6267\u884c\u5982\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>lspci | grep d500 <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u82e5\u56de\u663e\u7c7b\u4f3c\u5982\u4e0b\u4fe1\u606f&#xff0c;\u5219\u8868\u793a\u5361\u6b63\u5e38\u5728\u4f4d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3b:00.0 Processing accelerators: Huawei Technologies Co., Ltd. Device d500 (rev 23)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#8230;&#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u68c0\u67e5PCIe\u94fe\u8def\u72b6\u6001<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u67e5\u770bPCIe\u94fe\u8defBUS\u53f7&#xff1a;<\/p>\n<p>lspci | grep d500 <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u56de\u663e\u7c7b\u4f3c\u5982\u4e0b\u4fe1\u606f&#xff0c;3b:00.0\u8868\u793aPCIe\u94fe\u8defBUS\u53f7\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3b:00.0 Processing accelerators: Huawei Technologies Co., Ltd. Device d500 (rev 23)<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#8230;&#8230;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6839\u636e\u4e0a\u8ff0\u6b65\u9aa4\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7&#xff08;3b:00.0\u4ec5\u4e3a\u793a\u4f8b&#xff0c;\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7&#xff09;&#xff0c;\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u68c0\u67e5PCIe\u94fe\u8def\u72b6\u6001\u3002<\/p>\n<p>lspci -vvvs 3b:00.0 |\u00a0 grep LnkSta <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u8fd4\u56de\u7684\u4fe1\u606f\u4e2d\u67e5\u770b\u7c7b\u4f3c\u5982\u4e0b\u4fe1\u606f&#xff08;\u5efa\u8bae\u4e0d\u4f4e\u4e8ePCIe3.0&#xff08;8GT\/s&#xff09;X8\u7684\u5e26\u5bbd\u80fd\u529b&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"18\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729193740-688923043dea3.png\" width=\"516\" \/><\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u4e8c\u3001\u5b89\u88c5NPU\u9a71\u52a8\u56fa\u4ef6<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u4ee5root\u7528\u6237\u767b\u5f55\u670d\u52a1\u5668<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u521b\u5efa\u9a71\u52a8\u8fd0\u884c\u7528\u6237HwHiAiUser&#xff08;\u8fd0\u884c\u9a71\u52a8\u8fdb\u7a0b\u7684\u7528\u6237&#xff09;&#xff0c;\u5b89\u88c5\u9a71\u52a8\u65f6\u65e0\u9700\u6307\u5b9a\u8fd0\u884c\u7528\u6237&#xff0c;\u9ed8\u8ba4\u5373\u4e3aHwHiAiUser\u3002<\/p>\n<p>groupadd HwHiAiUser<br \/>\nuseradd -g HwHiAiUser -d \/home\/HwHiAiUser -m HwHiAiUser -s \/bin\/bash <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.\u9700\u8981\u5b89\u88c5make\u3001dkms\u3001gcc\u3001kernel-devel\u8f6f\u4ef6\u5305\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u68c0\u67e5\u662f\u5426\u5b89\u88c5&#xff1a;<\/p>\n<p>make -v<br \/>\nrpm -qa | grep dkms<br \/>\nrpm -qa | grep gcc<br \/>\nrpm -qa | grep kernel-devel-$(uname -r) <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u82e5\u56de\u663e\u76f8\u5173\u8f6f\u4ef6\u5305\u7248\u672c\u4fe1\u606f&#xff0c;\u8868\u793a\u5df2\u5b89\u88c5&#xff1b;\u82e5\u672a\u5b89\u88c5\u8bf7\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\u4f9d\u8d56\u3002<\/p>\n<p>yum install -y make dkms gcc kernel-devel-$(uname -r) <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">4.\u5c06\u9a71\u52a8\u5305\u548c\u56fa\u4ef6\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u4efb\u610f\u76ee\u5f55\u5982\u201c\/home\u201d\u3002&#xff08;\u6839\u636e\u4e0d\u540c\u7c7b\u578b\u7684\u5361\u5728\u6607\u817e\u793e\u533a\u4e0b\u8f7d\u4e0d\u540c\u7684\u9a71\u52a8\u5305\u548c\u56fa\u4ef6\u5305&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">5.\u589e\u52a0\u9a71\u52a8\u548c\u56fa\u4ef6\u5305\u7684\u53ef\u6267\u884c\u6743\u9650\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fdb\u5165\u9a71\u52a8\u5305\u548c\u56fa\u4ef6\u5305\u6240\u5728\u76ee\u5f55&#xff0c;\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">chmod &#043;x \u9a71\u52a8\u5305\u540d\u79f0.run<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">chmod &#043;x \u56fa\u4ef6\u5305\u540d\u79f0.run<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">6.\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5b8c\u6210\u9a71\u52a8\u56fa\u4ef6\u5b89\u88c5&#xff0c;\u8f6f\u4ef6\u5305\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84\u4e3a\u201c\/usr\/local\/Ascend\u201d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9996\u6b21\u5b89\u88c5\u573a\u666f&#xff0c;\u9700\u6309\u7167\u201c\u9a71\u52a8 &gt; \u56fa\u4ef6\u201d\u7684\u987a\u5e8f\u5b89\u88c5\u9a71\u52a8\u56fa\u4ef6&#xff1b;\u8986\u76d6\u5b89\u88c5\u573a\u666f&#xff0c;\u9700\u6309\u7167\u201c\u56fa\u4ef6\u00a0&gt; \u9a71\u52a8\u201d\u7684\u987a\u5e8f\u5b89\u88c5\u56fa\u4ef6\u9a71\u52a8\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u5b89\u88c5\u9a71\u52a8:\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5b8c\u6210\u9a71\u52a8\u5b89\u88c5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/Ascend-hdk-xxx-npu-driver_{version}_linux-{arch}.run &#8211;full &#8211;install-for-all<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">*\u6ce8&#xff1a;{version}\u8868\u793a\u8f6f\u4ef6\u5305\u7248\u672c&#xff1b;{arch}\u8868\u793a\u67b6\u6784&#xff0c;\u8bf7\u4ee5\u5b9e\u9645\u8f6f\u4ef6\u5305\u540d\u66ff\u6362\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u82e5\u7cfb\u7edf\u51fa\u73b0\u5982\u4e0b\u5173\u952e\u56de\u663e\u4fe1\u606f&#xff0c;\u5219\u8868\u793a\u9a71\u52a8\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Driver package installed successfully!<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u5b89\u88c5\u56fa\u4ef6&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u5b8c\u6210\u56fa\u4ef6\u5b89\u88c5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/Ascend-hdk-xxx-npu-firmware_{version}.run &#8211;full<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u82e5\u7cfb\u7edf\u51fa\u73b0\u5982\u4e0b\u5173\u952e\u56de\u663e\u4fe1\u606f&#xff0c;\u8868\u793a\u56fa\u4ef6\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Firmware package installed successfully! Reboot now or after driver installation for the installation\/upgrade to take effect<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">7.\u6267\u884creboot\u547d\u4ee4\u91cd\u542f\u7cfb\u7edf&#xff0c;\u4f7fNPU\u9a71\u52a8\u56fa\u4ef6\u751f\u6548\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">8.\u91cd\u542f\u7cfb\u7edf\u540e&#xff0c;\u4ee5root\u7528\u6237\u767b\u5f55\u670d\u52a1\u5668\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">9.\u6267\u884cnpu-smi info\u67e5\u770b\u9a71\u52a8\u52a0\u8f7d\u662f\u5426\u6210\u529f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u82e5\u51fa\u73b0\u7c7b\u4f3c\u5982\u4e0b\u56fe\u6240\u793a\u56de\u663e\u4fe1\u606f&#xff0c;\u8bf4\u660e\u52a0\u8f7d\u6210\u529f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"129\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729193740-688923044ddc7.jpg\" width=\"831\" \/><\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u4e09\u3001\u5b89\u88c5CANN<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1&#xff0e;\u5b89\u88c5\u4f9d\u8d56<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5\u7cfb\u7edf\u4f9d\u8d56\u524d&#xff0c;\u786e\u4fdd\u670d\u52a1\u5668\u5df2\u8fde\u63a5\u5916\u7f51&#xff0c;\u5e76\u914d\u7f6e\u8f6f\u4ef6\u6e90\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u67e5\u8be2\u670d\u52a1\u5668\u662f\u5426\u8fde\u63a5\u5916\u7f51\u3002<\/p>\n<p>wget www.hiascend.com <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u67e5\u8be2\u670d\u52a1\u5668\u662f\u5426\u914d\u7f6e\u8f6f\u4ef6\u6e90<\/p>\n<p>yum makecache <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5982\u679c\u4ee5root\u7528\u6237\u5b89\u88c5Python\u540e&#xff0c;\u5176\u4ed6\u7528\u6237\u4e5f\u9700\u8981\u4f7f\u7528Python&#xff0c;\u5219\u5728\u5b89\u88c5\u7cfb\u7edf\u4f9d\u8d56\u524d&#xff0c;\u8bf7\u786e\u4fddroot\u7528\u6237\u7684umask\u503c\u4e3a0022\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6267\u884c\u5982\u4e0b\u547d\u4ee4&#xff0c;\u67e5\u8be2umask\u503c\u3002<\/p>\n<p>umask <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u4ee5root\u7528\u6237\u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u5b89\u88c5\u4f9d\u8d56\u8f6f\u4ef6<\/p>\n<p>yum install -y gcc gcc-c&#043;&#043; make cmake sqlite-devel zlib-devel openssl-devel libffi-devel net-tools git <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8981\u6c423.5.1\u7248\u672c\u53ca\u4ee5\u4e0acmake&#xff08;\u6267\u884ccmake &#8211;version\u547d\u4ee4\u67e5\u8be2&#xff09;&#xff0c;\u82e5cmake\u7248\u672c\u4f4e\u4e8e3.5.1&#xff0c;\u9700\u5b89\u88c53.5.2\u7248\u672ccmake<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u4f7f\u7528wget\u4e0b\u8f7dcmake\u6e90\u7801\u5305&#xff0c;\u53ef\u4ee5\u4e0b\u8f7d\u5230\u5b89\u88c5\u670d\u52a1\u5668\u4efb\u610f\u76ee\u5f55&#xff0c;\u547d\u4ee4\u4e3a&#xff1a;<\/p>\n<p>wget https:\/\/cmake.org\/files\/v3.5\/cmake-3.5.2.tar.gz &#8211;no-check-certificate <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u8fdb\u5165\u4e0b\u8f7d\u540e\u7684\u76ee\u5f55&#xff0c;\u89e3\u538b\u6e90\u7801\u5305&#xff0c;\u547d\u4ee4\u4e3a&#xff1a;<\/p>\n<p>tar -zxvf cmake-3.5.2.tar.gz <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u8fdb\u5165\u89e3\u538b\u540e\u7684\u6587\u4ef6\u5939&#xff0c;\u6267\u884c\u914d\u7f6e&#xff0c;\u7f16\u8bd1\u548c\u5b89\u88c5\u547d\u4ee4&#xff1a;<\/p>\n<p>cd cmake-3.5.2<br \/>\n.\/bootstrap &#8211;prefix&#061;\/usr<br \/>\nmake<br \/>\nmake install <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;4&#xff09;\u5b89\u88c5\u5b8c\u6210\u540e\u91cd\u65b0\u6267\u884ccmake &#8211;version\u67e5\u770b\u7248\u672c\u53f7\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8981\u6c427.3.0\u7248\u672c\u53ca\u4ee5\u4e0agcc&#xff08;\u6267\u884cgcc &#8211;version\u547d\u4ee4\u67e5\u8be2&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5b89\u88c5\u6ee1\u8db3\u7248\u672c\u8981\u6c42\u7684Python\u5f00\u53d1\u73af\u5883&#xff08;\u652f\u6301Python3.7.x\u81f33.10.x&#xff09;<\/p>\n<p>python3 &#8211;version<br \/>\npip3 &#8211;version <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u82e5\u5df2\u5b89\u88c5Python3&#xff0c;\u672a\u5b89\u88c5pip3&#xff0c;\u8bf7\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\u3002<\/p>\n<p>yum install -y python3-pip <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">4.\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5\u6240\u9700\u7684Python\u7b2c\u4e09\u65b9\u5e93\u3002<\/p>\n<p>pip3 install &#8211;upgrade pip<br \/>\npip3 install attrs cython numpy decorator sympy cffi pyyaml pathlib2 psutil protobuf scipy requests absl-py <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">5.\u5b89\u88c5CANN<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5\u524d\u987b\u77e5&#xff1a;\u5b89\u88c5Toolkit\u8f6f\u4ef6\u524d\u8bf7\u786e\u4fdd\u5b89\u88c5\u76ee\u5f55\u53ef\u7528\u7a7a\u95f4\u5927\u4e8e7G&#xff0c;\u5982\u4e0d\u6ee1\u8db3\u8bf7\u6e05\u7406\u7a7a\u95f4\u6216\u66f4\u6362\u5b89\u88c5\u76ee\u5f55\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5982\u679c\u540c\u65f6\u5b89\u88c5Toolkit\u548ckernels&#xff0c;\u8bf7\u6309\u7167\u201cToolkit &gt; kernels\u8f6f\u4ef6\u201d\u7684\u987a\u5e8f\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u4ee5root\u7528\u6237\u767b\u5f55\u670d\u52a1\u5668\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u5c06\u83b7\u53d6\u7684Toolkit\u548ckernels\u8f6f\u4ef6\u5305\u4e0a\u4f20\u5230\u5b89\u88c5\u73af\u5883\u4efb\u610f\u8def\u5f84\u5982\u201c\/home\u201d\u3002&#xff08;\u8f6f\u4ef6\u5305\u53ef\u5728\u5347\u817e\u793e\u533a\u83b7\u53d6&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u589e\u52a0\u5bf9\u8f6f\u4ef6\u5305\u7684\u53ef\u6267\u884c\u6743\u9650&#xff0c;\u5728\u8f6f\u4ef6\u5305\u6240\u5728\u76ee\u5f55\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">chmod &#043;x Toolkit\u8f6f\u4ef6\u5305\u540d\u79f0.run<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">chmod &#043;x kernels\u8f6f\u4ef6\u5305\u540d\u79f0.run<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u5b89\u88c5Toolkit\u548ckernels\u8f6f\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u8f6f\u4ef6\u5305\u6240\u5728\u76ee\u5f55\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/Ascend-cann-toolkit_&lt;version&gt;_linux-&lt;arch&gt;.run &#8211;install &#8211;install-for-all &#8211;quiet<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/Ascend-cann-kernels_&lt;version&gt;_linux-&lt;arch&gt;.run &#8211;install &#8211;install-for-all &#8211;quiet<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u82e5\u663e\u793a\u5982\u4e0b\u4fe1\u606f&#xff0c;\u5219\u8bf4\u660e\u8f6f\u4ef6\u5b89\u88c5\u6210\u529f&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">xxx install success<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">xxx\u8868\u793a\u5b89\u88c5\u7684\u5b9e\u9645\u8f6f\u4ef6\u5305\u540d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">Toolkit\u5b89\u88c5\u540e\u7684\u8def\u5f84&#xff1a;\u201c\/usr\/local\/Ascend\u201d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">6.\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539~\/.bashrc\u6587\u4ef6\u65b9\u5f0f\u8bbe\u7f6e\u6c38\u4e45\u73af\u5883\u53d8\u91cf&#xff0c;\u64cd\u4f5c\u5982\u4e0b&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u6267\u884cvi ~\/.bashrc\u547d\u4ee4&#xff0c;\u6253\u5f00.bashrc\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u6309\u201ci\u201d\u952e\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u5728\u6587\u4ef6\u6700\u540e\u4e00\u884c\u540e\u9762\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u3002<\/p>\n<p>source \/usr\/local\/Ascend\/ascend-toolkit\/set_env.sh <\/p>\n<p style=\"text-align:justify\">&#xff08;3&#xff09;\u6309\u201cEsc\u201d\u952e\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u6267\u884c:wq!\u547d\u4ee4\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;4&#xff09;\u6267\u884csource ~\/.bashrc\u547d\u4ee4\u4f7f\u5176\u7acb\u5373\u751f\u6548\u3002<\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u56db\u3001\u5b89\u88c5NNAL <\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">NNAL&#xff08;Ascend Transformer Boost \u52a0\u901f\u5e93&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u589e\u52a0\u53ef\u6267\u884c\u6743\u9650<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fdb\u5165\u8f6f\u4ef6\u5305\u6240\u5728\u76ee\u5f55&#xff0c;\u5e76\u4e3a\u8f6f\u4ef6\u5305\u6dfb\u52a0\u53ef\u6267\u884c\u6743\u9650&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">chmod &#043;x nnal\u8f6f\u4ef6\u5305\u540d\u79f0.run<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u6821\u9a8c\u8f6f\u4ef6\u5305\u5b8c\u6574\u6027<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6821\u9a8c\u8f6f\u4ef6\u5305\u7684\u5b8c\u6574\u6027\u548c\u4e00\u81f4\u6027&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/Ascend-cann-nnal_xxx_linux-aarch64.run &#8211;check<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5982\u679c\u6821\u9a8c\u901a\u8fc7&#xff0c;\u4f1a\u663e\u793a\u6821\u9a8c\u6210\u529f\u7684\u4fe1\u606f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.\u5b89\u88c5 NNAL<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 NNAL&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/Ascend-cann-nnal_xxx_linux-aarch64.run &#8211;install &#8211;quiet<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5982\u679c\u672a\u6307\u5b9a\u5b89\u88c5\u8def\u5f84&#xff0c;\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84\u4e3a&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">root \u7528\u6237&#xff1a;\/usr\/local\/Ascend\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5\u65e5\u5fd7\u8def\u5f84&#xff1a;\/var\/log\/ascend_seclog\/ascend_nnal_install.log<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">4.\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539~\/.bashrc\u6587\u4ef6\u65b9\u5f0f\u8bbe\u7f6e\u6c38\u4e45\u73af\u5883\u53d8\u91cf&#xff0c;\u64cd\u4f5c\u5982\u4e0b&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u6267\u884cvi ~\/.bashrc\u547d\u4ee4&#xff0c;\u6253\u5f00.bashrc\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u6309\u201ci\u201d\u952e\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u5728\u6587\u4ef6\u6700\u540e\u4e00\u884c\u540e\u9762\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u3002<\/p>\n<p>source \/usr\/local\/Ascend\/nnal\/atb\/set_env.sh <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u6309\u201cEsc\u201d\u952e\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u6267\u884c:wq!\u547d\u4ee4\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;4&#xff09;\u6267\u884csource ~\/.bashrc\u547d\u4ee4\u4f7f\u5176\u7acb\u5373\u751f\u6548\u3002<\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u4e94\u3001\u5b89\u88c5ToolBox<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u4ee5root\u7528\u6237\u767b\u5f55\u670d\u52a1\u5668\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u5c06\u83b7\u53d6\u7684ToolBox\u8f6f\u4ef6\u5305\u4e0a\u4f20\u5230\u5b89\u88c5\u73af\u5883\u4efb\u610f\u8def\u5f84&#xff08;\u5982\u201c\/home\u201d&#xff09;\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.\u589e\u52a0\u5bf9\u8f6f\u4ef6\u5305\u7684\u53ef\u6267\u884c\u6743\u9650\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u8f6f\u4ef6\u5305\u6240\u5728\u76ee\u5f55\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">chmod &#043;x toolbox\u8f6f\u4ef6\u5305\u540d\u79f0.run<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">4.\u5b89\u88c5ToolBox\u8f6f\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u8f6f\u4ef6\u5305\u6240\u5728\u76ee\u5f55\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">.\/Ascend-mindx-toolbox_xxx_linux-aarch64.run &#8211;install &#8211;install-for-all &#8211;quiet<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u82e5\u663e\u793a\u5982\u4e0b\u4fe1\u606f&#xff0c;\u5219\u8bf4\u660e\u8f6f\u4ef6\u5b89\u88c5\u6210\u529f&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">xxx install success<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">xxx\u8868\u793a\u5b89\u88c5\u7684\u5b9e\u9645\u8f6f\u4ef6\u5305\u540d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5\u540e\u7684\u8def\u5f84&#xff1a;\u201c\/usr\/local\/Ascend\u201d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">5.\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539~\/.bashrc\u6587\u4ef6\u65b9\u5f0f\u8bbe\u7f6e\u6c38\u4e45\u73af\u5883\u53d8\u91cf&#xff0c;\u64cd\u4f5c\u5982\u4e0b&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u6267\u884cvi ~\/.bashrc\u547d\u4ee4&#xff0c;\u6253\u5f00.bashrc\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u6309\u201ci\u201d\u952e\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u5728\u6587\u4ef6\u6700\u540e\u4e00\u884c\u540e\u9762\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u3002<\/p>\n<p>source \/usr\/local\/Ascend\/toolbox\/set_env.sh <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u6309\u201cEsc\u201d\u952e\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f&#xff0c;\u6267\u884c:wq!\u547d\u4ee4\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;4&#xff09;\u6267\u884csource ~\/.bashrc\u547d\u4ee4\u4f7f\u5176\u7acb\u5373\u751f\u6548\u3002<\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u516d\u3001\u5b89\u88c5PyTorch \u4e0etorch_npu<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6839\u636e\u4e0d\u540c\u7684CANN\u7248\u672c\u5b89\u88c5\u4e0d\u540c\u7248\u672c\u7684PyTorch\u548ctorch_npu\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4ee5CANN8.0.0\u7248\u672c\u4e3a\u4f8b&#xff0c;\u4f7f\u7528pip\u65b9\u5f0f\u5b89\u88c52.1.2\u7248\u672cPyTorch&#xff0c;Python\u7248\u672c\u4e3a3.8\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u5b89\u88c5PyTorch<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u8f6f\u4ef6\u5305<\/p>\n<p>wget https:\/\/download.pytorch.org\/whl\/cpu\/torch-2.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl  <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5<\/p>\n<p>pip3 install torch-2.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u5b89\u88c5torch_npu\u00a0<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u8f6f\u4ef6\u5305&#xff0c;torch_npu \u7248\u672c\u4e3a6.0.0<\/p>\n<p>wget https:\/\/gitee.com\/ascend\/pytorch\/releases\/download\/v6.0.0-pytorch2.1.0\/torch_npu-2.1.0.post10-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5<\/p>\n<p>pip3 install torch_npu-2.1.0.post10-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6267\u884c\u5982\u4e0b\u547d\u4ee4&#xff0c;\u82e5\u8fd4\u56deTrue\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>python3 -c &#034;import torch;import torch_npu;print(torch_npu.npu.is_available())&#034; <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">PyTorch\u7248\u672c\u4e3a2.1.0&#xff0c;\u82e5\u51fa\u73b0\u201c\u627e\u4e0d\u5230google\u6216\u8005protobuf\u6216\u8005protobuf\u7248\u672c\u8fc7\u9ad8\u201d\u62a5\u9519\u65f6&#xff0c;\u9700\u6267\u884c\u5982\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>pip3 install protobuf&#061;&#061;3.20 <\/p>\n<p>3.\u5b89\u88c5torchvision<\/p>\n<p>\u4e0ePyTorch2.1.0\u7248\u672c\u76f8\u5bf9\u5e94\u7684torchvision\u7248\u672c\u4e3a0.16.0&#xff0c;\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5torchvision\u3002<\/p>\n<p>pip3 install torchvision&#061;&#061;0.16.0  <\/p>\n<h2>\u4e03\u3001\u5b89\u88c5MindStudio<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">MindStudio\u7c7b\u4f3c\u4e8ePyCharm&#xff0c;\u5b89\u88c5\u5b8c\u6210\u540e\u5373\u53ef\u5728\u670d\u52a1\u5668\u4fee\u6539\u3001\u8c03\u8bd5\u7a0b\u5e8f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.MindStudio7.0.0\u7248\u672c\u4e0b\u8f7d\u5730\u5740<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">https:\/\/support.huawei.com\/enterprise\/zh\/ascend-computing\/mindstudio-pid-251913966\/software\/261723310?idAbsPath&#061;fixnode01|23710424|251366513|254884019|261408772|251913966<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u68c0\u67e5\u6e90<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5b89\u88c5\u8fc7\u7a0b\u9700\u8981\u4e0b\u8f7d\u76f8\u5173\u4f9d\u8d56&#xff0c;\u8bf7\u786e\u4fdd\u670d\u52a1\u5668\u80fd\u591f\u8fde\u63a5\u7f51\u7edc&#xff0c;\u8bf7\u5728root\u7528\u6237\u4e0b\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u68c0\u67e5\u6e90\u662f\u5426\u53ef\u7528\u3002<\/p>\n<p>yum repolist <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.\u5b89\u88c5\u4f9d\u8d56<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u68c0\u67e5\u7cfb\u7edf\u662f\u5426\u5b89\u88c5Python\u4f9d\u8d56\u4ee5\u53cagcc\u7b49\u8f6f\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5206\u522b\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u68c0\u67e5\u662f\u5426\u5b89\u88c5gcc&#xff0c;make\u4ee5\u53caPython\u4f9d\u8d56\u8f6f\u4ef6\u7b49\u3002<\/p>\n<p>gcc &#8211;version<br \/>\ng&#043;&#043; &#8211;version<br \/>\nmake &#8211;version<br \/>\ncmake &#8211;version<br \/>\nrpm -qa |grep unzip<br \/>\nrpm -qa |grep zlib-devel<br \/>\nrpm -qa |grep bzip2-devel<br \/>\nrpm -qa |grep sqlite-devel<br \/>\nrpm -qa |grep libffi-devel<br \/>\nrpm -qa |grep openssl-devel<br \/>\nrpm -qa |grep xz-devel<br \/>\nrpm -qa |grep pciutils<br \/>\nrpm -qa |grep net-tools<br \/>\nrpm -qa |grep sqlite-devel<br \/>\nrpm -qa |grep lapack-devel<br \/>\nrpm -qa |grep gcc-gfortran<br \/>\nrpm -qa |grep xterm<br \/>\nrpm -qa |grep firefox<br \/>\nrpm -qa |grep openssh<br \/>\nrpm -qa | grep xdg-utils<br \/>\nrpm -qa | grep dbus-glib-devel<br \/>\nrpm -qa | grep gdb <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u82e5\u5206\u522b\u6709\u8fd4\u56de\u4fe1\u606f\u5219\u8bf4\u660e\u5df2\u7ecf\u5b89\u88c5\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5426\u5219\u8bf7\u6267\u884c\u5982\u4e0b\u5b89\u88c5\u547d\u4ee4&#xff08;\u5982\u679c\u53ea\u6709\u90e8\u5206\u8f6f\u4ef6\u672a\u5b89\u88c5&#xff0c;\u5219\u5982\u4e0b\u547d\u4ee4\u4fee\u6539\u4e3a\u53ea\u5b89\u88c5\u8fd8\u672a\u5b89\u88c5\u7684\u8f6f\u4ef6\u5373\u53ef&#xff09;&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">sudo yum install -y gcc gcc-c&#043;&#043; make cmake unzip zlib-devel bzip2-devel sqlite-devel libffi-devel openssl-devel pciutils net-tools lapack-devel gcc-gfortran xterm firefox openssh xdg-utils dbus-glib-devel gdb<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4f7f\u7528root\u7528\u6237\u5b89\u88c5\u4f9d\u8d56&#xff0c;\u8bf7\u5c06\u547d\u4ee4\u4e2d\u7684sudo\u5220\u9664\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u4f7f\u7528MindStudio\u7684\u5b89\u88c5\u7528\u6237\u4e0a\u4f20\u8f6f\u4ef6\u5305\u81f3\u5f85\u5b89\u88c5\u73af\u5883\u5982\u201copt\u201d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u8fdb\u5165opt\u8def\u5f84\u89e3\u538bMindStudio\u8f6f\u4ef6\u5305\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u4f7f\u7528MindStudio\u7684\u5b89\u88c5\u7528\u6237\u5728\u8f6f\u4ef6\u5305\u6240\u5728\u8def\u5f84\u6267\u884c\u5982\u4e0b\u547d\u4ee4&#xff0c;\u89e3\u538bMindStudio\u8f6f\u4ef6\u5305\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">tar -zxvf MindStudio_{version}_linux_{arch}.tar.gz<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;4&#xff09;\u4f7f\u7528MindStudio\u7684\u5b89\u88c5\u7528\u6237\u8fdb\u5165\u8f6f\u4ef6\u5305\u89e3\u538b\u540e\u7684MindStudio\/bin\u76ee\u5f55\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">cd \/opt\/MindStudio\/bin<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u542f\u52a8MindStudio\u3002<\/p>\n<p>.\/MindStudio.sh <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5982\u679c\u8be5\u547d\u4ee4\u4e0d\u80fd\u542f\u52a8MindStudio&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f\u542f\u52a8&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">a.\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u67e5\u8be2\u5f53\u524d\u73af\u5883\u7684shell\u89e3\u6790\u65b9\u5f0f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">echo $SHELL<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">b.\u56de\u663e\u4e3a\u4ee5\u4e0b\u5185\u5bb9&#xff0c;\u8868\u793a\u5f53\u524d\u73af\u5883\u7684\u547d\u4ee4\u884c\u9700\u8981\u4f7f\u7528bash\u89e3\u6790\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\/bin\/bash<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">c.\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u542f\u52a8MindStudio\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">bash MindStudio.sh<\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u516b\u3001\u6a21\u578b\u8f6c\u6362onnx2om<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5c06\u8bad\u7ec3\u7684pt\u6a21\u578b\u4f7f\u7528export.py\u8f6c\u6362\u4e3aonnx\u6a21\u578b&#xff0c;\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u5c06onnx\u6a21\u578b\u8f6c\u6362\u4e3a\u534e\u4e3a\u670d\u52a1\u5668\u9002\u7528\u7684om\u6a21\u578b\u3002<\/p>\n<p>atc &#8211;model&#061;best.onnx &#8211;framework&#061;5 &#8211;output&#061;best &#8212; input_format&#061;NCHW &#8211;soc_version&#061; Ascend310P3 <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5176\u4e2d&#xff1a;&#8211;framework\u8868\u793a\u539f\u59cb\u6846\u67b6\u7c7b\u578b&#xff0c;5\u4ee3\u8868ONNX\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#8211;output&#061;best\u6307\u5b9a\u8f93\u51fa\u7684 .om \u6587\u4ef6\u540d&#xff08;\u4e0d\u5305\u62ec\u6269\u5c55\u540d&#xff09;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#8211;soc_version&#061;Ascend310P3&#xff0c;\u6607\u817eAI\u5904\u7406\u5668\u7684\u578b\u53f7\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u82e5\u63d0\u793a\u5982\u4e0b\u4fe1\u606f&#xff0c;\u5219\u8bf4\u660e\u6a21\u578b\u8f6c\u6362\u6210\u529f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">ATC run success, welcome to the next use.<\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u4e5d\u3001U\u76d8\u6302\u8f7d<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5728\u670d\u52a1\u5668\u4e0a\u7b2c\u4e00\u6b21\u63d2\u5165U\u76d8\u65f6&#xff0c;\u4e0d\u663e\u793aU\u76d8\u5185\u5bb9&#xff0c;\u6b64\u65f6\u9700\u8981\u8fdb\u884cU\u76d8\u6302\u8f7d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u00a0\u5b89\u88c5 exFAT \u652f\u6301<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u7531\u4e8e Kylin \u7cfb\u7edf\u9ed8\u8ba4\u4e0d\u652f\u6301 exFAT \u6587\u4ef6\u7cfb\u7edf&#xff0c;\u9700\u8981\u5b89\u88c5 exfat-utils \u548c fuse-exfat \u5305\u3002<\/p>\n<p>sudo yum install exfat-utils fuse-exfat <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u00a0\u52a0\u8f7d FUSE \u6a21\u5757<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u786e\u4fdd FUSE \u6a21\u5757\u5df2\u52a0\u8f7d\u5230\u5185\u6838\u4e2d&#xff0c;\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u52a0\u8f7d FUSE \u6a21\u5757&#xff1a;<\/p>\n<p>sudo modprobe fuse <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">3.\u00a0\u6302\u8f7d exFAT \u6587\u4ef6\u7cfb\u7edf<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u63d2\u5165 U \u76d8\u540e&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u6b65\u9aa4\u6302\u8f7d exFAT \u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u67e5\u627e\u8bbe\u5907\u540d\u79f0&#xff1a; \u4f7f\u7528 lsblk \u6216 fdisk -l \u547d\u4ee4\u67e5\u627e U \u76d8\u7684\u8bbe\u5907\u540d\u79f0&#xff0c;\u4f8b\u5982 \/dev\/sdc1\u3002<\/p>\n<p>lsblk <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u521b\u5efa\u6302\u8f7d\u70b9&#xff1a;<\/p>\n<p>sudo mkdir \/mnt\/usb <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u624b\u52a8\u6302\u8f7d&#xff1a; \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6302\u8f7d exFAT \u6587\u4ef6\u7cfb\u7edf&#xff1a;<\/p>\n<p>sudo mount -t exfat \/dev\/sdc1 \/mnt\/usb <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">4.\u00a0\u9a8c\u8bc1\u6302\u8f7d<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u6302\u8f7d\u662f\u5426\u6210\u529f&#xff1a;<\/p>\n<p>ls \/mnt\/usb <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5982\u679c\u80fd\u591f\u770b\u5230 U \u76d8\u7684\u5185\u5bb9&#xff0c;\u8bf4\u660e\u6302\u8f7d\u6210\u529f<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">5.\u5728\u62d4\u51fa U \u76d8\u4e4b\u524d&#xff0c;\u5148\u5378\u8f7d\u5b83&#xff0c;\u4ee5\u907f\u514d\u6570\u636e\u4e22\u5931\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7d U \u76d8&#xff1a;<\/p>\n<p>sudo umount \/mnt\/usb <\/p>\n<h2 style=\"margin-left:0px;margin-right:0px;text-align:justify\">\u5341\u3001\u6587\u672c\u7f16\u8f91<\/h2>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u9664\u4e86\u5b89\u88c5\u7684MindStudio\u53ef\u4ee5\u8fdb\u884c\u6587\u672c\u7f16\u8f91\u5916&#xff0c;\u5728\u672a\u5b89\u88c5MindStudio\u65f6\u8fd8\u53ef\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u8fdb\u884c\u6587\u672c\u7f16\u8f91\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">1.\u4f7f\u7528nano\u547d\u4ee4\u884c\u6587\u672c\u7f16\u8f91\u5668<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u6216\u7f16\u8f91 Python \u6587\u4ef6&#xff1a;nano myscript.py<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u6309 Ctrl &#043; O \u4fdd\u5b58\u6587\u4ef6&#xff0c;\u7136\u540e\u6309 Enter \u786e\u8ba4\u6587\u4ef6\u540d\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u6309 Ctrl &#043; X \u9000\u51fa nano\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">2.\u4f7f\u7528\u00a0vim\u547d\u4ee4\u884c\u6587\u672c\u7f16\u8f91\u5668<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u6216\u7f16\u8f91 Python \u6587\u4ef6&#xff1a;vim myscript.py<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;1&#xff09;\u6309 i \u8fdb\u5165\u63d2\u5165\u6a21\u5f0f&#xff0c;\u5f00\u59cb\u7f16\u8f91\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;2&#xff09;\u7f16\u8f91\u5b8c\u6210\u540e&#xff0c;\u6309 Esc \u9000\u51fa\u63d2\u5165\u6a21\u5f0f\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">&#xff08;3&#xff09;\u8f93\u5165 :wq! \u4fdd\u5b58\u5e76\u9000\u51fa\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5199\u5728\u6700\u540e\u7684\u8bdd&#xff1a;<\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\">\u5dc5\u5cf0\u7684\u540e\u9762\u5c31\u662f\u4f4e\u8c37&#xff0c;\u8fd9\u662f\u4e16\u95f4\u7684\u89c4\u5f8b&#xff0c;\u8c01\u4e5f\u9003\u4e0d\u6389\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb975\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u53ef\u80fd\u5927\u591a\u6570\u4eba\u5728\u8bad\u7ec3\u6a21\u578b\u65f6\u4f7f\u7528\u7684\u670d\u52a1\u5668\u90fd\u662f\u82f1\u4f1f\u8fbe\u663e\u5361\u7684\uff0c\u82e5\u8981\u5c06\u5728\u82f1\u4f1f\u8fbe\u663e\u5361\u4e0a\u8bad\u7ec3\u7684\u6a21\u578b\u8fc1\u79fb\u5230\u534e\u4e3a\u670d\u52a1\u5668\u4e0a\uff0c\u8be5\u5982\u4f55\u64cd\u4f5c\uff1f\u6839\u636e\u4e0a\u8ff0\u6b65\u9aa4\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7\uff083b:00.0\u4ec5\u4e3a\u793a\u4f8b\uff0c\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7\uff09\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u68c0\u67e5PCIe\u94fe\u8def\u72b6\u6001\u3002\u5982\u679c\u4ee5root\u7528\u6237\u5b89\u88c5Python\u540e\uff0c\u5176\u4ed6\u7528\u6237\u4e5f\u9700\u8981\u4f7f\u7528Python\uff0c\u5219\u5728\u5b89\u88c5\u7cfb\u7edf\u4f9d\u8d56\u524d\uff0c\u8bf7\u786e\u4fddroot\u7528\u6237\u7684umask\u503c\u4e3a0022\u3002\u5b89\u88c5\u524d\u987b\u77e5\uff1a\u5b89\u88c5Toolkit\u8f6f\u4ef6\u524d\u8bf7\u786e\u4fdd\u5b89\u88c5\u76ee\u5f55\u53ef\u7528\u7a7a\u95f4\u5927\u4e8e7G\uff0c\u5982\u4e0d\u6ee1\u8db3\u8bf7\u6e05\u7406\u7a7a\u95f4\u6216\u66f4\u6362\u5b89\u88c5\u76ee\u5f55\u3002_\u534e\u4e3anpu\u5361\u5b89\u88c5\u9a71\u52a8<\/p>\n","protected":false},"author":2,"featured_media":46603,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50,67,523],"topic":[],"class_list":["post-46605","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-50","tag-67","tag-523"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/46605.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb975\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u53ef\u80fd\u5927\u591a\u6570\u4eba\u5728\u8bad\u7ec3\u6a21\u578b\u65f6\u4f7f\u7528\u7684\u670d\u52a1\u5668\u90fd\u662f\u82f1\u4f1f\u8fbe\u663e\u5361\u7684\uff0c\u82e5\u8981\u5c06\u5728\u82f1\u4f1f\u8fbe\u663e\u5361\u4e0a\u8bad\u7ec3\u7684\u6a21\u578b\u8fc1\u79fb\u5230\u534e\u4e3a\u670d\u52a1\u5668\u4e0a\uff0c\u8be5\u5982\u4f55\u64cd\u4f5c\uff1f\u6839\u636e\u4e0a\u8ff0\u6b65\u9aa4\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7\uff083b:00.0\u4ec5\u4e3a\u793a\u4f8b\uff0c\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7\uff09\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u68c0\u67e5PCIe\u94fe\u8def\u72b6\u6001\u3002\u5982\u679c\u4ee5root\u7528\u6237\u5b89\u88c5Python\u540e\uff0c\u5176\u4ed6\u7528\u6237\u4e5f\u9700\u8981\u4f7f\u7528Python\uff0c\u5219\u5728\u5b89\u88c5\u7cfb\u7edf\u4f9d\u8d56\u524d\uff0c\u8bf7\u786e\u4fddroot\u7528\u6237\u7684umask\u503c\u4e3a0022\u3002\u5b89\u88c5\u524d\u987b\u77e5\uff1a\u5b89\u88c5Toolkit\u8f6f\u4ef6\u524d\u8bf7\u786e\u4fdd\u5b89\u88c5\u76ee\u5f55\u53ef\u7528\u7a7a\u95f4\u5927\u4e8e7G\uff0c\u5982\u4e0d\u6ee1\u8db3\u8bf7\u6e05\u7406\u7a7a\u95f4\u6216\u66f4\u6362\u5b89\u88c5\u76ee\u5f55\u3002_\u534e\u4e3anpu\u5361\u5b89\u88c5\u9a71\u52a8\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/46605.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T19:37:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729193740-688923043dea3.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46605.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/46605.html\",\"name\":\"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T19:37:41+00:00\",\"dateModified\":\"2025-07-29T19:37:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/46605.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/46605.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/46605.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/46605.html","og_locale":"zh_CN","og_type":"article","og_title":"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb975\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u53ef\u80fd\u5927\u591a\u6570\u4eba\u5728\u8bad\u7ec3\u6a21\u578b\u65f6\u4f7f\u7528\u7684\u670d\u52a1\u5668\u90fd\u662f\u82f1\u4f1f\u8fbe\u663e\u5361\u7684\uff0c\u82e5\u8981\u5c06\u5728\u82f1\u4f1f\u8fbe\u663e\u5361\u4e0a\u8bad\u7ec3\u7684\u6a21\u578b\u8fc1\u79fb\u5230\u534e\u4e3a\u670d\u52a1\u5668\u4e0a\uff0c\u8be5\u5982\u4f55\u64cd\u4f5c\uff1f\u6839\u636e\u4e0a\u8ff0\u6b65\u9aa4\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7\uff083b:00.0\u4ec5\u4e3a\u793a\u4f8b\uff0c\u8bf7\u66ff\u6362\u4e3a\u5b9e\u9645\u67e5\u8be2\u7684PCIe\u94fe\u8defBUS\u53f7\uff09\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u68c0\u67e5PCIe\u94fe\u8def\u72b6\u6001\u3002\u5982\u679c\u4ee5root\u7528\u6237\u5b89\u88c5Python\u540e\uff0c\u5176\u4ed6\u7528\u6237\u4e5f\u9700\u8981\u4f7f\u7528Python\uff0c\u5219\u5728\u5b89\u88c5\u7cfb\u7edf\u4f9d\u8d56\u524d\uff0c\u8bf7\u786e\u4fddroot\u7528\u6237\u7684umask\u503c\u4e3a0022\u3002\u5b89\u88c5\u524d\u987b\u77e5\uff1a\u5b89\u88c5Toolkit\u8f6f\u4ef6\u524d\u8bf7\u786e\u4fdd\u5b89\u88c5\u76ee\u5f55\u53ef\u7528\u7a7a\u95f4\u5927\u4e8e7G\uff0c\u5982\u4e0d\u6ee1\u8db3\u8bf7\u6e05\u7406\u7a7a\u95f4\u6216\u66f4\u6362\u5b89\u88c5\u76ee\u5f55\u3002_\u534e\u4e3anpu\u5361\u5b89\u88c5\u9a71\u52a8","og_url":"https:\/\/www.wsisp.com\/helps\/46605.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T19:37:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729193740-688923043dea3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/46605.html","url":"https:\/\/www.wsisp.com\/helps\/46605.html","name":"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T19:37:41+00:00","dateModified":"2025-07-29T19:37:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/46605.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/46605.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/46605.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u534e\u4e3a\u670d\u52a1\u5668\u9a71\u52a8\u3001\u73af\u5883\u5b89\u88c5\u53ca\u6a21\u578b\u8f6c\u6362"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=46605"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/46605\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/46603"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=46605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=46605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=46605"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=46605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}