[{"data":1,"prerenderedAt":1081},["ShallowReactive",2],{"content-query-FlnMS58YYb":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":8,"date":9,"cover":10,"type":11,"category":12,"body":13,"_type":1075,"_id":1076,"_source":1077,"_file":1078,"_stem":1079,"_extension":1080},"/technology-blogs/zh/1601","zh",false,"","【MindSpore易点通·漫游世界】在Jetson Nano上安装MindSpore 1.6.0 CPU版","2022-06-29","https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2022/07/08/0b4257ff21e54a01918b756c71b234f1.png","technology-blogs","基础知识",{"type":14,"children":15,"toc":1072},"root",[16,24,40,46,51,59,64,71,76,81,93,100,105,116,123,128,135,140,147,152,159,163,170,175,180,190,197,202,212,219,224,231,238,245,252,257,262,273,284,291,298,303,308,315,320,327,332,345,358,365,370,377,382,387,392,399,406,411,418,423,428,433,440,445,452,457,462,469,474,481,486,490,497,502,509,514,519,524,531,536,541,548,553,560,565,572,577,582,602,609,614,619,629,636,641,646,651,656,663,668,675,680,687,692,699,704,709,716,721,732,739,744,751,756,763,768,775,780,787,792,799,809,816,821,826,831,838,842,849,854,861,865,872,877,884,889,896,901,906,913,928,935,940,945,950,955,962,967,974,978,982,989,994,1001,1006,1013,1031,1038,1045,1050,1055,1060,1067],{"type":17,"tag":18,"props":19,"children":21},"element","h1",{"id":20},"mindspore易点通漫游世界在jetson-nano上安装mindspore-160-cpu版",[22],{"type":23,"value":8},"text",{"type":17,"tag":25,"props":26,"children":27},"p",{},[28,30,38],{"type":23,"value":29},"本文摘自 原创作品：Nvidia Jetson Nano B01初体验（2） ",{"type":17,"tag":31,"props":32,"children":36},"a",{"href":33,"rel":34},"https://bbs.huaweicloud.com/blogs/330177",[35],"nofollow",[37],{"type":23,"value":33},{"type":23,"value":39}," 第16节",{"type":17,"tag":18,"props":41,"children":43},{"id":42},"十六探索安装昇思",[44],{"type":23,"value":45},"（十六）探索：安装昇思",{"type":17,"tag":25,"props":47,"children":48},{},[49],{"type":23,"value":50},"尽管MindSpore没有CUDA10.2的aarch64版本。",{"type":17,"tag":25,"props":52,"children":53},{},[54],{"type":17,"tag":55,"props":56,"children":58},"img",{"alt":7,"src":57},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643849273285016582.png",[],{"type":17,"tag":25,"props":60,"children":61},{},[62],{"type":23,"value":63},"只有aarch的CPU版本：",{"type":17,"tag":25,"props":65,"children":66},{},[67],{"type":17,"tag":55,"props":68,"children":70},{"alt":7,"src":69},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643828815271087054.png",[],{"type":17,"tag":25,"props":72,"children":73},{},[74],{"type":23,"value":75},"Python的版本也只有3.6.9。但是作为昇思开发者的张小白，仍然想在Nano的CPU上跑一下MindSpore试试。",{"type":17,"tag":25,"props":77,"children":78},{},[79],{"type":23,"value":80},"于是，张小白心想：应该先装anaconda for aarch64，这样才能让Nano上有Python3.7.5。",{"type":17,"tag":25,"props":82,"children":83},{},[84,86],{"type":23,"value":85},"打开 ",{"type":17,"tag":31,"props":87,"children":90},{"href":88,"rel":89},"https://bbs.huaweicloud.com/forum/thread-179274-1-1.html#",[35],[91],{"type":23,"value":92},"https://www.anaconda.com/products/individual",{"type":17,"tag":25,"props":94,"children":95},{},[96],{"type":17,"tag":55,"props":97,"children":99},{"alt":7,"src":98},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829133695020459.png",[],{"type":17,"tag":25,"props":101,"children":102},{},[103],{"type":23,"value":104},"复制ARM64的安装链接：",{"type":17,"tag":25,"props":106,"children":107},{},[108,110],{"type":23,"value":109},"wget ",{"type":17,"tag":31,"props":111,"children":113},{"href":88,"rel":112},[35],[114],{"type":23,"value":115},"https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-aarch64.sh",{"type":17,"tag":25,"props":117,"children":118},{},[119],{"type":17,"tag":55,"props":120,"children":122},{"alt":7,"src":121},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829247527023589.png",[],{"type":17,"tag":25,"props":124,"children":125},{},[126],{"type":23,"value":127},"./Anaconda3-2021.11-Linux-aarch64.sh",{"type":17,"tag":25,"props":129,"children":130},{},[131],{"type":17,"tag":55,"props":132,"children":134},{"alt":7,"src":133},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829357270001999.png",[],{"type":17,"tag":25,"props":136,"children":137},{},[138],{"type":23,"value":139},"按回车继续：",{"type":17,"tag":25,"props":141,"children":142},{},[143],{"type":17,"tag":55,"props":144,"children":146},{"alt":7,"src":145},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829416787089844.png",[],{"type":17,"tag":25,"props":148,"children":149},{},[150],{"type":23,"value":151},"输入yes，回车：",{"type":17,"tag":25,"props":153,"children":154},{},[155],{"type":17,"tag":55,"props":156,"children":158},{"alt":7,"src":157},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829447855076784.png",[],{"type":17,"tag":25,"props":160,"children":161},{},[162],{"type":23,"value":139},{"type":17,"tag":25,"props":164,"children":165},{},[166],{"type":17,"tag":55,"props":167,"children":169},{"alt":7,"src":168},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829646069039489.png",[],{"type":17,"tag":25,"props":171,"children":172},{},[173],{"type":23,"value":174},"好像不行，core dump了。",{"type":17,"tag":25,"props":176,"children":177},{},[178],{"type":23,"value":179},"含泪删除：rm -rf ~/anaconda3",{"type":17,"tag":25,"props":181,"children":182},{},[183,184],{"type":23,"value":85},{"type":17,"tag":31,"props":185,"children":187},{"href":88,"rel":186},[35],[188],{"type":23,"value":189},"https://docs.conda.io/en/latest/miniconda.html#linux-installers",{"type":17,"tag":25,"props":191,"children":192},{},[193],{"type":17,"tag":55,"props":194,"children":196},{"alt":7,"src":195},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829837391028056.png",[],{"type":17,"tag":25,"props":198,"children":199},{},[200],{"type":23,"value":201},"复制下链接：",{"type":17,"tag":25,"props":203,"children":204},{},[205,206],{"type":23,"value":109},{"type":17,"tag":31,"props":207,"children":209},{"href":88,"rel":208},[35],[210],{"type":23,"value":211},"https://repo.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux-aarch64.sh",{"type":17,"tag":25,"props":213,"children":214},{},[215],{"type":17,"tag":55,"props":216,"children":218},{"alt":7,"src":217},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643829908273005593.png",[],{"type":17,"tag":25,"props":220,"children":221},{},[222],{"type":23,"value":223},"bash ./Miniconda3-py37_4.10.3-Linux-aarch64.sh",{"type":17,"tag":25,"props":225,"children":226},{},[227],{"type":17,"tag":55,"props":228,"children":230},{"alt":7,"src":229},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830016139024609.png",[],{"type":17,"tag":25,"props":232,"children":233},{},[234],{"type":17,"tag":55,"props":235,"children":237},{"alt":7,"src":236},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830040484079231.png",[],{"type":17,"tag":25,"props":239,"children":240},{},[241],{"type":17,"tag":55,"props":242,"children":244},{"alt":7,"src":243},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830150379067470.png",[],{"type":17,"tag":25,"props":246,"children":247},{},[248],{"type":17,"tag":55,"props":249,"children":251},{"alt":7,"src":250},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830159307055417.png",[],{"type":17,"tag":25,"props":253,"children":254},{},[255],{"type":23,"value":256},"好像是一样的coredump，看来conda是不行了。",{"type":17,"tag":25,"props":258,"children":259},{},[260],{"type":23,"value":261},"再次含泪删除：rm -rf ~/miniconda3。",{"type":17,"tag":25,"props":263,"children":264},{},[265,267],{"type":23,"value":266},"再试下 pyenv和virtualenv吧，",{"type":17,"tag":268,"props":269,"children":270},"strong",{},[271],{"type":23,"value":272},"原理上：使用 pyenv 可以安装任何版本的 Python，用 virtualenv 创建虚拟环境时指定需要的 Python 版本路径，这样就可以创建任何版本的虚拟环境。",{"type":17,"tag":25,"props":274,"children":275},{},[276,278],{"type":23,"value":277},"sudo -H pip3 install virtualenv virtualenvwrapper -i ",{"type":17,"tag":31,"props":279,"children":281},{"href":88,"rel":280},[35],[282],{"type":23,"value":283},"https://pypi.tuna.tsinghua.edu.cn/simple/",{"type":17,"tag":25,"props":285,"children":286},{},[287],{"type":17,"tag":55,"props":288,"children":290},{"alt":7,"src":289},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830715137057383.png",[],{"type":17,"tag":25,"props":292,"children":293},{},[294],{"type":17,"tag":55,"props":295,"children":297},{"alt":7,"src":296},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830727513095515.png",[],{"type":17,"tag":25,"props":299,"children":300},{},[301],{"type":23,"value":302},"mkdir ~/.virtualenvs",{"type":17,"tag":25,"props":304,"children":305},{},[306],{"type":23,"value":307},"vi ~/.bashrc",{"type":17,"tag":25,"props":309,"children":310},{},[311],{"type":17,"tag":55,"props":312,"children":314},{"alt":7,"src":313},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830857182071467.png",[],{"type":17,"tag":25,"props":316,"children":317},{},[318],{"type":23,"value":319},"source ~/.bashrc",{"type":17,"tag":25,"props":321,"children":322},{},[323],{"type":17,"tag":55,"props":324,"children":326},{"alt":7,"src":325},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643830902070040997.png",[],{"type":17,"tag":25,"props":328,"children":329},{},[330],{"type":23,"value":331},"安装pyenv",{"type":17,"tag":25,"props":333,"children":334},{},[335,337,343],{"type":23,"value":336},"curl -L ",{"type":17,"tag":31,"props":338,"children":341},{"href":339,"rel":340},"https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer",[35],[342],{"type":23,"value":339},{"type":23,"value":344}," | bash",{"type":17,"tag":25,"props":346,"children":347},{},[348,350,356],{"type":23,"value":349},"git clone ",{"type":17,"tag":31,"props":351,"children":354},{"href":352,"rel":353},"https://github.com/yyuu/pyenv.git",[35],[355],{"type":23,"value":352},{"type":23,"value":357}," ~/.pyenv",{"type":17,"tag":25,"props":359,"children":360},{},[361],{"type":17,"tag":55,"props":362,"children":364},{"alt":7,"src":363},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643847510100019154.png",[],{"type":17,"tag":25,"props":366,"children":367},{},[368],{"type":23,"value":369},"在~/.bashrc加入以下内容：",{"type":17,"tag":25,"props":371,"children":372},{},[373],{"type":17,"tag":55,"props":374,"children":376},{"alt":7,"src":375},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643847574401035544.png",[],{"type":17,"tag":25,"props":378,"children":379},{},[380],{"type":23,"value":381},"source ~/.bashrc 使其生效",{"type":17,"tag":25,"props":383,"children":384},{},[385],{"type":23,"value":386},"查看Python可用版本：",{"type":17,"tag":25,"props":388,"children":389},{},[390],{"type":23,"value":391},"pyenv install --list",{"type":17,"tag":25,"props":393,"children":394},{},[395],{"type":17,"tag":55,"props":396,"children":398},{"alt":7,"src":397},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643847724932037925.png",[],{"type":17,"tag":25,"props":400,"children":401},{},[402],{"type":17,"tag":55,"props":403,"children":405},{"alt":7,"src":404},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643847752528069052.png",[],{"type":17,"tag":25,"props":407,"children":408},{},[409],{"type":23,"value":410},"。。。",{"type":17,"tag":25,"props":412,"children":413},{},[414],{"type":17,"tag":55,"props":415,"children":417},{"alt":7,"src":416},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643847774187035211.png",[],{"type":17,"tag":25,"props":419,"children":420},{},[421],{"type":23,"value":422},"貌似有非常多。",{"type":17,"tag":25,"props":424,"children":425},{},[426],{"type":23,"value":427},"用pyenv装个python3.7.5试试：",{"type":17,"tag":25,"props":429,"children":430},{},[431],{"type":23,"value":432},"pyenv install 3.7.5",{"type":17,"tag":25,"props":434,"children":435},{},[436],{"type":17,"tag":55,"props":437,"children":439},{"alt":7,"src":438},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643847840796018034.png",[],{"type":17,"tag":25,"props":441,"children":442},{},[443],{"type":23,"value":444},"感觉下载要蛮长的时间，耐心等待吧。",{"type":17,"tag":25,"props":446,"children":447},{},[448],{"type":17,"tag":55,"props":449,"children":451},{"alt":7,"src":450},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643848835434066486.png",[],{"type":17,"tag":25,"props":453,"children":454},{},[455],{"type":23,"value":456},"报缺少ssl库。",{"type":17,"tag":25,"props":458,"children":459},{},[460],{"type":23,"value":461},"sudo apt-get install openssl libssl-dev",{"type":17,"tag":25,"props":463,"children":464},{},[465],{"type":17,"tag":55,"props":466,"children":468},{"alt":7,"src":467},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643848921841025888.png",[],{"type":17,"tag":25,"props":470,"children":471},{},[472],{"type":23,"value":473},"按Y继续：",{"type":17,"tag":25,"props":475,"children":476},{},[477],{"type":17,"tag":55,"props":478,"children":480},{"alt":7,"src":479},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643848958005062967.png",[],{"type":17,"tag":25,"props":482,"children":483},{},[484],{"type":23,"value":485},"再来一遍：",{"type":17,"tag":25,"props":487,"children":488},{},[489],{"type":23,"value":432},{"type":17,"tag":25,"props":491,"children":492},{},[493],{"type":17,"tag":55,"props":494,"children":496},{"alt":7,"src":495},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643849704379016325.png",[],{"type":17,"tag":25,"props":498,"children":499},{},[500],{"type":23,"value":501},"可以到 /home/zhanghui/.pyenv/versions/3.7.5 目录下看到Python的版本：",{"type":17,"tag":25,"props":503,"children":504},{},[505],{"type":17,"tag":55,"props":506,"children":508},{"alt":7,"src":507},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643852044012035635.png",[],{"type":17,"tag":25,"props":510,"children":511},{},[512],{"type":23,"value":513},"刷新pyenv并查看现在的版本：",{"type":17,"tag":25,"props":515,"children":516},{},[517],{"type":23,"value":518},"pyenv rehash",{"type":17,"tag":25,"props":520,"children":521},{},[522],{"type":23,"value":523},"pyenv versions",{"type":17,"tag":25,"props":525,"children":526},{},[527],{"type":17,"tag":55,"props":528,"children":530},{"alt":7,"src":529},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643851043001000736.png",[],{"type":17,"tag":25,"props":532,"children":533},{},[534],{"type":23,"value":535},"创建Python 3.7.5的mindspore运行环境（命名为mindspore-py375）：",{"type":17,"tag":25,"props":537,"children":538},{},[539],{"type":23,"value":540},"virtualenv -p ~/.pyenv/versions/3.7.5/bin/python mindspore-py375",{"type":17,"tag":25,"props":542,"children":543},{},[544],{"type":17,"tag":55,"props":545,"children":547},{"alt":7,"src":546},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643862034295038701.png",[],{"type":17,"tag":25,"props":549,"children":550},{},[551],{"type":23,"value":552},"它会在当前目录下建一个mindspore-py375目录：",{"type":17,"tag":25,"props":554,"children":555},{},[556],{"type":17,"tag":55,"props":557,"children":559},{"alt":7,"src":558},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643863602260087330.png",[],{"type":17,"tag":25,"props":561,"children":562},{},[563],{"type":23,"value":564},"source ~/mindspore-py375/bin/activate",{"type":17,"tag":25,"props":566,"children":567},{},[568],{"type":17,"tag":55,"props":569,"children":571},{"alt":7,"src":570},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643863670873065712.png",[],{"type":17,"tag":25,"props":573,"children":574},{},[575],{"type":23,"value":576},"这就切换到了Python 3.7.5的环境。",{"type":17,"tag":25,"props":578,"children":579},{},[580],{"type":23,"value":581},"安装mindspore cpu(aarch64) 1.6.0版本：",{"type":17,"tag":25,"props":583,"children":584},{},[585,587,594,596],{"type":23,"value":586},"pip3 install ",{"type":17,"tag":31,"props":588,"children":591},{"href":589,"rel":590},"https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.6.0/MindSpore/cpu/aarch64/mindspore-1.6.0-cp37-cp37m-linux%5C_aarch64.whl",[35],[592],{"type":23,"value":593},"https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.6.0/MindSpore/cpu/aarch64/mindspore-1.6.0-cp37-cp37m-linux\\_aarch64.whl",{"type":23,"value":595}," --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com -i ",{"type":17,"tag":31,"props":597,"children":599},{"href":88,"rel":598},[35],[600],{"type":23,"value":601},"https://pypi.tuna.tsinghua.edu.cn/simple",{"type":17,"tag":25,"props":603,"children":604},{},[605],{"type":17,"tag":55,"props":606,"children":608},{"alt":7,"src":607},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643863924883055918.png",[],{"type":17,"tag":25,"props":610,"children":611},{},[612],{"type":23,"value":613},"报错了。",{"type":17,"tag":25,"props":615,"children":616},{},[617],{"type":23,"value":618},"先安装gmp6.1.2",{"type":17,"tag":25,"props":620,"children":621},{},[622,623],{"type":23,"value":109},{"type":17,"tag":31,"props":624,"children":626},{"href":88,"rel":625},[35],[627],{"type":23,"value":628},"https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz",{"type":17,"tag":25,"props":630,"children":631},{},[632],{"type":17,"tag":55,"props":633,"children":635},{"alt":7,"src":634},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643864261123085708.png",[],{"type":17,"tag":25,"props":637,"children":638},{},[639],{"type":23,"value":640},"xz -d gmp-6.1.2.tar.xz",{"type":17,"tag":25,"props":642,"children":643},{},[644],{"type":23,"value":645},"tar -xvf gmp-6.1.2.tar",{"type":17,"tag":25,"props":647,"children":648},{},[649],{"type":23,"value":650},"cd gmp-6.1.2",{"type":17,"tag":25,"props":652,"children":653},{},[654],{"type":23,"value":655},"./configure",{"type":17,"tag":25,"props":657,"children":658},{},[659],{"type":17,"tag":55,"props":660,"children":662},{"alt":7,"src":661},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643864442327052072.png",[],{"type":17,"tag":25,"props":664,"children":665},{},[666],{"type":23,"value":667},"...",{"type":17,"tag":25,"props":669,"children":670},{},[671],{"type":17,"tag":55,"props":672,"children":674},{"alt":7,"src":673},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643864509331034071.png",[],{"type":17,"tag":25,"props":676,"children":677},{},[678],{"type":23,"value":679},"make",{"type":17,"tag":25,"props":681,"children":682},{},[683],{"type":17,"tag":55,"props":684,"children":686},{"alt":7,"src":685},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643864763735082467.png",[],{"type":17,"tag":25,"props":688,"children":689},{},[690],{"type":23,"value":691},"sudo make install",{"type":17,"tag":25,"props":693,"children":694},{},[695],{"type":17,"tag":55,"props":696,"children":698},{"alt":7,"src":697},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643864791099051748.png",[],{"type":17,"tag":25,"props":700,"children":701},{},[702],{"type":23,"value":703},"升级下pip试试：",{"type":17,"tag":25,"props":705,"children":706},{},[707],{"type":23,"value":708},"python -m pip install --upgrade pip",{"type":17,"tag":25,"props":710,"children":711},{},[712],{"type":17,"tag":55,"props":713,"children":715},{"alt":7,"src":714},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643865188780082124.png",[],{"type":17,"tag":25,"props":717,"children":718},{},[719],{"type":23,"value":720},"去掉清华源试试：",{"type":17,"tag":25,"props":722,"children":723},{},[724,725,730],{"type":23,"value":586},{"type":17,"tag":31,"props":726,"children":728},{"href":589,"rel":727},[35],[729],{"type":23,"value":593},{"type":23,"value":731}," --trusted-host ms-release.obs.cn-north-4.myhuaweicloud.com",{"type":17,"tag":25,"props":733,"children":734},{},[735],{"type":17,"tag":55,"props":736,"children":738},{"alt":7,"src":737},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643865364346088200.png",[],{"type":17,"tag":25,"props":740,"children":741},{},[742],{"type":23,"value":743},"安装速度要慢一点，耐心等待吧。",{"type":17,"tag":25,"props":745,"children":746},{},[747],{"type":17,"tag":55,"props":748,"children":750},{"alt":7,"src":749},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643881206255007201.png",[],{"type":17,"tag":25,"props":752,"children":753},{},[754],{"type":23,"value":755},"pip3 install --upgrade setuptools",{"type":17,"tag":25,"props":757,"children":758},{},[759],{"type":17,"tag":55,"props":760,"children":762},{"alt":7,"src":761},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643881256147020447.png",[],{"type":17,"tag":25,"props":764,"children":765},{},[766],{"type":23,"value":767},"pip3 install pip==21.3.1",{"type":17,"tag":25,"props":769,"children":770},{},[771],{"type":17,"tag":55,"props":772,"children":774},{"alt":7,"src":773},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643881647222035192.png",[],{"type":17,"tag":25,"props":776,"children":777},{},[778],{"type":23,"value":779},"sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl",{"type":17,"tag":25,"props":781,"children":782},{},[783],{"type":17,"tag":55,"props":784,"children":786},{"alt":7,"src":785},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643882195725039536.png",[],{"type":17,"tag":25,"props":788,"children":789},{},[790],{"type":23,"value":791},"..",{"type":17,"tag":25,"props":793,"children":794},{},[795],{"type":17,"tag":55,"props":796,"children":798},{"alt":7,"src":797},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643882253367049682.png",[],{"type":17,"tag":25,"props":800,"children":801},{},[802,803],{"type":23,"value":109},{"type":17,"tag":31,"props":804,"children":807},{"href":805,"rel":806},"https://github.com/Kitware/CMake/releases/download/v3.18.5/cmake-3.18.5.tar.gz",[35],[808],{"type":23,"value":805},{"type":17,"tag":25,"props":810,"children":811},{},[812],{"type":17,"tag":55,"props":813,"children":815},{"alt":7,"src":814},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643883296805094330.png",[],{"type":17,"tag":25,"props":817,"children":818},{},[819],{"type":23,"value":820},"tar -zxvf cmake-3.18.5.tar.gz",{"type":17,"tag":25,"props":822,"children":823},{},[824],{"type":23,"value":825},"cd cmake-3.18.5",{"type":17,"tag":25,"props":827,"children":828},{},[829],{"type":23,"value":830},"./bootstrap",{"type":17,"tag":25,"props":832,"children":833},{},[834],{"type":17,"tag":55,"props":835,"children":837},{"alt":7,"src":836},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643883711536012150.png",[],{"type":17,"tag":25,"props":839,"children":840},{},[841],{"type":23,"value":667},{"type":17,"tag":25,"props":843,"children":844},{},[845],{"type":17,"tag":55,"props":846,"children":848},{"alt":7,"src":847},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643884300280016489.png",[],{"type":17,"tag":25,"props":850,"children":851},{},[852],{"type":23,"value":853},"make -j8",{"type":17,"tag":25,"props":855,"children":856},{},[857],{"type":17,"tag":55,"props":858,"children":860},{"alt":7,"src":859},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643884331266068430.png",[],{"type":17,"tag":25,"props":862,"children":863},{},[864],{"type":23,"value":667},{"type":17,"tag":25,"props":866,"children":867},{},[868],{"type":17,"tag":55,"props":869,"children":871},{"alt":7,"src":870},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643886333839032449.png",[],{"type":17,"tag":25,"props":873,"children":874},{},[875],{"type":23,"value":876},"sudo make install -j8",{"type":17,"tag":25,"props":878,"children":879},{},[880],{"type":17,"tag":55,"props":881,"children":883},{"alt":7,"src":882},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643886365015028391.png",[],{"type":17,"tag":25,"props":885,"children":886},{},[887],{"type":23,"value":888},"cmake --version",{"type":17,"tag":25,"props":890,"children":891},{},[892],{"type":17,"tag":55,"props":893,"children":895},{"alt":7,"src":894},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643886588351079259.png",[],{"type":17,"tag":25,"props":897,"children":898},{},[899],{"type":23,"value":900},"发现 /usr/bin和/usr/local/bin下都有cmake。",{"type":17,"tag":25,"props":902,"children":903},{},[904],{"type":23,"value":905},"将/usr/bin下的cmake改名，重试：",{"type":17,"tag":25,"props":907,"children":908},{},[909],{"type":17,"tag":55,"props":910,"children":912},{"alt":7,"src":911},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643886701140019503.png",[],{"type":17,"tag":25,"props":914,"children":915},{},[916,917,922,923],{"type":23,"value":586},{"type":17,"tag":31,"props":918,"children":920},{"href":589,"rel":919},[35],[921],{"type":23,"value":593},{"type":23,"value":595},{"type":17,"tag":31,"props":924,"children":926},{"href":601,"rel":925},[35],[927],{"type":23,"value":601},{"type":17,"tag":25,"props":929,"children":930},{},[931],{"type":17,"tag":55,"props":932,"children":934},{"alt":7,"src":933},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643886958449068892.png",[],{"type":17,"tag":25,"props":936,"children":937},{},[938],{"type":23,"value":939},"好像还是不行。",{"type":17,"tag":25,"props":941,"children":942},{},[943],{"type":23,"value":944},"要不还是换成Python 3.9.0再试一次",{"type":17,"tag":25,"props":946,"children":947},{},[948],{"type":23,"value":949},"退出mindspore-py375环境",{"type":17,"tag":25,"props":951,"children":952},{},[953],{"type":23,"value":954},"deactivate",{"type":17,"tag":25,"props":956,"children":957},{},[958],{"type":17,"tag":55,"props":959,"children":961},{"alt":7,"src":960},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888046589042519.png",[],{"type":17,"tag":25,"props":963,"children":964},{},[965],{"type":23,"value":966},"pyenv install 3.9.0",{"type":17,"tag":25,"props":968,"children":969},{},[970],{"type":17,"tag":55,"props":971,"children":973},{"alt":7,"src":972},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888089676056785.png",[],{"type":17,"tag":25,"props":975,"children":976},{},[977],{"type":23,"value":518},{"type":17,"tag":25,"props":979,"children":980},{},[981],{"type":23,"value":523},{"type":17,"tag":25,"props":983,"children":984},{},[985],{"type":17,"tag":55,"props":986,"children":988},{"alt":7,"src":987},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888114113023576.png",[],{"type":17,"tag":25,"props":990,"children":991},{},[992],{"type":23,"value":993},"virtualenv -p ~/.pyenv/versions/3.9.0/bin/python mindspore-py390",{"type":17,"tag":25,"props":995,"children":996},{},[997],{"type":17,"tag":55,"props":998,"children":1000},{"alt":7,"src":999},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888166859067109.png",[],{"type":17,"tag":25,"props":1002,"children":1003},{},[1004],{"type":23,"value":1005},"source ~/mindspore-py390/bin/activate",{"type":17,"tag":25,"props":1007,"children":1008},{},[1009],{"type":17,"tag":55,"props":1010,"children":1012},{"alt":7,"src":1011},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888215306065480.png",[],{"type":17,"tag":25,"props":1014,"children":1015},{},[1016,1018,1025,1026],{"type":23,"value":1017},"pip install ",{"type":17,"tag":31,"props":1019,"children":1022},{"href":1020,"rel":1021},"https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.6.0/MindSpore/cpu/aarch64/mindspore-1.6.0-cp39-cp39-linux%5C_aarch64.whl",[35],[1023],{"type":23,"value":1024},"https://ms-release.obs.cn-north-4.myhuaweicloud.com/1.6.0/MindSpore/cpu/aarch64/mindspore-1.6.0-cp39-cp39-linux\\_aarch64.whl",{"type":23,"value":595},{"type":17,"tag":31,"props":1027,"children":1029},{"href":88,"rel":1028},[35],[1030],{"type":23,"value":601},{"type":17,"tag":25,"props":1032,"children":1033},{},[1034],{"type":17,"tag":55,"props":1035,"children":1037},{"alt":7,"src":1036},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888296126022561.png",[],{"type":17,"tag":25,"props":1039,"children":1040},{},[1041],{"type":17,"tag":55,"props":1042,"children":1044},{"alt":7,"src":1043},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888350330042944.png",[],{"type":17,"tag":25,"props":1046,"children":1047},{},[1048],{"type":23,"value":1049},"这个居然安装成功了！",{"type":17,"tag":25,"props":1051,"children":1052},{},[1053],{"type":23,"value":1054},"做个测试看看：",{"type":17,"tag":25,"props":1056,"children":1057},{},[1058],{"type":23,"value":1059},"python -c \"import mindspore;mindspore.run_check()\"",{"type":17,"tag":25,"props":1061,"children":1062},{},[1063],{"type":17,"tag":55,"props":1064,"children":1066},{"alt":7,"src":1065},"https://bbs-img.huaweicloud.com/blogs/img/20220203/1643888403157049233.png",[],{"type":17,"tag":25,"props":1068,"children":1069},{},[1070],{"type":23,"value":1071},"好了，其实CPU也没啥意义。只是张小白不服输而已。要是GPU+aarch64版本能用才是真的有用。",{"title":7,"searchDepth":1073,"depth":1073,"links":1074},4,[],"markdown","content:technology-blogs:zh:1601.md","content","technology-blogs/zh/1601.md","technology-blogs/zh/1601","md",1776506114054]