[{"data":1,"prerenderedAt":688},["ShallowReactive",2],{"content-query-QYz8gW8Rgu":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"cover":11,"type":12,"category":13,"body":14,"_type":682,"_id":683,"_source":684,"_file":685,"_stem":686,"_extension":687},"/technology-blogs/zh/1045","zh",false,"","树莓派也可以装MindSpore 1.6.0 CPU版","让我们欣赏一下这次一次的旅程吧！","2022-02-18","https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2022/02/18/e796f985630a4b549efcb52007d0950e.png","technology-blogs","开发者分享",{"type":15,"children":16,"toc":676},"root",[17,25,34,55,60,65,78,89,94,98,110,117,122,129,134,141,146,153,158,165,170,175,182,187,194,199,206,211,216,223,228,235,240,247,252,259,264,271,276,283,288,295,300,305,312,317,322,329,334,339,346,351,358,363,368,375,380,385,392,397,404,409,414,421,426,433,443,450,458,465,470,477,482,487,492,499,504,512,517,524,529,537,542,549,554,559,566,571,578,583,588,595,600,605,612,617,622,629,636,639,649,658,667],{"type":18,"tag":19,"props":20,"children":22},"element","h1",{"id":21},"树莓派也可以装mindspore-160-cpu版",[23],{"type":24,"value":8},"text",{"type":18,"tag":26,"props":27,"children":28},"p",{},[29],{"type":18,"tag":30,"props":31,"children":33},"img",{"alt":7,"src":32},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2022/02/18/fd8158d30d4b434a9d0936605333d12c.gif",[],{"type":18,"tag":26,"props":35,"children":36},{},[37,48,50],{"type":18,"tag":38,"props":39,"children":40},"strong",{},[41,43],{"type":24,"value":42},"作者：",{"type":18,"tag":38,"props":44,"children":45},{},[46],{"type":24,"value":47},"张辉",{"type":24,"value":49}," ｜",{"type":18,"tag":38,"props":51,"children":52},{},[53],{"type":24,"value":54},"来源：华为云 MindSpore论坛",{"type":18,"tag":26,"props":56,"children":57},{},[58],{"type":24,"value":59},"张小白在元宵节，又给大家带来了什么呢？",{"type":18,"tag":26,"props":61,"children":62},{},[63],{"type":24,"value":64},"当然还是MindSpore漫游世界这件事情了。",{"type":18,"tag":26,"props":66,"children":67},{},[68,70],{"type":24,"value":69},"MindSpore去过 MacOS：",{"type":18,"tag":71,"props":72,"children":76},"a",{"href":73,"rel":74},"https://bbs.huaweicloud.com/blogs/255527",[75],"nofollow",[77],{"type":24,"value":73},{"type":18,"tag":26,"props":79,"children":80},{},[81,83],{"type":24,"value":82},"去过Jetson Nano：",{"type":18,"tag":71,"props":84,"children":87},{"href":85,"rel":86},"https://bbs.huaweicloud.com/blogs/330792",[75],[88],{"type":24,"value":85},{"type":18,"tag":26,"props":90,"children":91},{},[92],{"type":24,"value":93},"当然，今天它来到了红豆派。。。啊，不，是树莓派。。反正都是好吃的东西.",{"type":18,"tag":26,"props":95,"children":96},{},[97],{"type":24,"value":9},{"type":18,"tag":26,"props":99,"children":100},{},[101,103],{"type":24,"value":102},"打开树莓派官网：",{"type":18,"tag":71,"props":104,"children":107},{"href":105,"rel":106},"https://bbs.huaweicloud.com/forum/thread-179640-1-1.html#",[75],[108],{"type":24,"value":109},"http://raspberrypi.com/software/",{"type":18,"tag":26,"props":111,"children":112},{},[113],{"type":18,"tag":30,"props":114,"children":116},{"alt":7,"src":115},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848645159019417.png",[],{"type":18,"tag":26,"props":118,"children":119},{},[120],{"type":24,"value":121},"点击download for windows并下载安装：",{"type":18,"tag":26,"props":123,"children":124},{},[125],{"type":18,"tag":30,"props":126,"children":128},{"alt":7,"src":127},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848700922078431.png",[],{"type":18,"tag":26,"props":130,"children":131},{},[132],{"type":24,"value":133},"点击Finish，打开镜像烧录器：",{"type":18,"tag":26,"props":135,"children":136},{},[137],{"type":18,"tag":30,"props":138,"children":140},{"alt":7,"src":139},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848729927079700.png",[],{"type":18,"tag":26,"props":142,"children":143},{},[144],{"type":24,"value":145},"选择操作系统：",{"type":18,"tag":26,"props":147,"children":148},{},[149],{"type":18,"tag":30,"props":150,"children":152},{"alt":7,"src":151},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848752057095572.png",[],{"type":18,"tag":26,"props":154,"children":155},{},[156],{"type":24,"value":157},"选择other",{"type":18,"tag":26,"props":159,"children":160},{},[161],{"type":18,"tag":30,"props":162,"children":164},{"alt":7,"src":163},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848763402070916.png",[],{"type":18,"tag":26,"props":166,"children":167},{},[168],{"type":24,"value":169},"选择64位的官方系统",{"type":18,"tag":26,"props":171,"children":172},{},[173],{"type":24,"value":174},"选择存储卡：64G",{"type":18,"tag":26,"props":176,"children":177},{},[178],{"type":18,"tag":30,"props":179,"children":181},{"alt":7,"src":180},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848800224087251.png",[],{"type":18,"tag":26,"props":183,"children":184},{},[185],{"type":24,"value":186},"回到这个界面：",{"type":18,"tag":26,"props":188,"children":189},{},[190],{"type":18,"tag":30,"props":191,"children":193},{"alt":7,"src":192},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848811728070741.png",[],{"type":18,"tag":26,"props":195,"children":196},{},[197],{"type":24,"value":198},"点击下面的齿轮：",{"type":18,"tag":26,"props":200,"children":201},{},[202],{"type":18,"tag":30,"props":203,"children":205},{"alt":7,"src":204},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848827018025775.png",[],{"type":18,"tag":26,"props":207,"children":208},{},[209],{"type":24,"value":210},"开启SSH，",{"type":18,"tag":26,"props":212,"children":213},{},[214],{"type":24,"value":215},"用户名：pi，密码：****",{"type":18,"tag":26,"props":217,"children":218},{},[219],{"type":18,"tag":30,"props":220,"children":222},{"alt":7,"src":221},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848862033091373.png",[],{"type":18,"tag":26,"props":224,"children":225},{},[226],{"type":24,"value":227},"配置wifi",{"type":18,"tag":26,"props":229,"children":230},{},[231],{"type":18,"tag":30,"props":232,"children":234},{"alt":7,"src":233},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848881725035442.png",[],{"type":18,"tag":26,"props":236,"children":237},{},[238],{"type":24,"value":239},"选择时区：上海",{"type":18,"tag":26,"props":241,"children":242},{},[243],{"type":18,"tag":30,"props":244,"children":246},{"alt":7,"src":245},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848909931054263.png",[],{"type":18,"tag":26,"props":248,"children":249},{},[250],{"type":24,"value":251},"回到主界面，点击烧录：",{"type":18,"tag":26,"props":253,"children":254},{},[255],{"type":18,"tag":30,"props":256,"children":258},{"alt":7,"src":257},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848927762065593.png",[],{"type":18,"tag":26,"props":260,"children":261},{},[262],{"type":24,"value":263},"系统会提示是否要继续，选择：是",{"type":18,"tag":26,"props":265,"children":266},{},[267],{"type":18,"tag":30,"props":268,"children":270},{"alt":7,"src":269},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848967655096687.png",[],{"type":18,"tag":26,"props":272,"children":273},{},[274],{"type":24,"value":275},"耐心等待烧录完毕：",{"type":18,"tag":26,"props":277,"children":278},{},[279],{"type":18,"tag":30,"props":280,"children":282},{"alt":7,"src":281},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644848985903014937.png",[],{"type":18,"tag":26,"props":284,"children":285},{},[286],{"type":24,"value":287},"再等待验证完毕：",{"type":18,"tag":26,"props":289,"children":290},{},[291],{"type":18,"tag":30,"props":292,"children":294},{"alt":7,"src":293},"https://bbs-img.huaweicloud.com/blogs/img/20220214/1644849004965066880.png",[],{"type":18,"tag":26,"props":296,"children":297},{},[298],{"type":24,"value":299},"结果验证失败了！",{"type":18,"tag":26,"props":301,"children":302},{},[303],{"type":24,"value":304},"原来是张小白的64G TF卡坏了！",{"type":18,"tag":26,"props":306,"children":307},{},[308],{"type":18,"tag":30,"props":309,"children":311},{"alt":7,"src":310},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644897599810012553.png",[],{"type":18,"tag":26,"props":313,"children":314},{},[315],{"type":24,"value":316},"这让人比较恼火，毕竟这张卡好像保修期过了。。。",{"type":18,"tag":26,"props":318,"children":319},{},[320],{"type":24,"value":321},"无奈，张小白只好拿出另一张32G的TF卡，重新烧录：",{"type":18,"tag":26,"props":323,"children":324},{},[325],{"type":18,"tag":30,"props":326,"children":328},{"alt":7,"src":327},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644897684359029549.png",[],{"type":18,"tag":26,"props":330,"children":331},{},[332],{"type":24,"value":333},"正常烧录好了是这个样子的。",{"type":18,"tag":26,"props":335,"children":336},{},[337],{"type":24,"value":338},"启动登陆后，可以看到树莓派系统的版本号：",{"type":18,"tag":26,"props":340,"children":341},{},[342],{"type":18,"tag":30,"props":343,"children":345},{"alt":7,"src":344},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644897758552076849.png",[],{"type":18,"tag":26,"props":347,"children":348},{},[349],{"type":24,"value":350},"内置了gcc 10.2.1-6",{"type":18,"tag":26,"props":352,"children":353},{},[354],{"type":18,"tag":30,"props":355,"children":357},{"alt":7,"src":356},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644897789062084378.png",[],{"type":18,"tag":26,"props":359,"children":360},{},[361],{"type":24,"value":362},"python -V",{"type":18,"tag":26,"props":364,"children":365},{},[366],{"type":24,"value":367},"python3 -V",{"type":18,"tag":26,"props":369,"children":370},{},[371],{"type":18,"tag":30,"props":372,"children":374},{"alt":7,"src":373},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644897853151026935.png",[],{"type":18,"tag":26,"props":376,"children":377},{},[378],{"type":24,"value":379},"是3.9.2的版本。",{"type":18,"tag":26,"props":381,"children":382},{},[383],{"type":24,"value":384},"查看内存和存储情况：",{"type":18,"tag":26,"props":386,"children":387},{},[388],{"type":18,"tag":30,"props":389,"children":391},{"alt":7,"src":390},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644897911670035132.png",[],{"type":18,"tag":26,"props":393,"children":394},{},[395],{"type":24,"value":396},"检查opencv",{"type":18,"tag":26,"props":398,"children":399},{},[400],{"type":18,"tag":30,"props":401,"children":403},{"alt":7,"src":402},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644897930009059675.png",[],{"type":18,"tag":26,"props":405,"children":406},{},[407],{"type":24,"value":408},"好像没有安装。",{"type":18,"tag":26,"props":410,"children":411},{},[412],{"type":24,"value":413},"下面可以按照上一帖子的方式安装virrtualenv，这样可以在Python 3.7.5的环境下试一下。",{"type":18,"tag":26,"props":415,"children":416},{},[417],{"type":18,"tag":30,"props":418,"children":420},{"alt":7,"src":419},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898013979005475.png",[],{"type":18,"tag":26,"props":422,"children":423},{},[424],{"type":24,"value":425},"设置virtualenv环境：",{"type":18,"tag":26,"props":427,"children":428},{},[429],{"type":18,"tag":30,"props":430,"children":432},{"alt":7,"src":431},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898034738070206.png",[],{"type":18,"tag":434,"props":435,"children":437},"pre",{"code":436},"cd ~/.pyenv \nmkdir cache\ncd cache\n\ncp ~/Python-3.9.0.tar.xz .\n\ncp ~/Python-3.7.5.tar.xz .\n",[438],{"type":18,"tag":439,"props":440,"children":441},"code",{"__ignoreMap":7},[442],{"type":24,"value":436},{"type":18,"tag":26,"props":444,"children":445},{},[446],{"type":18,"tag":30,"props":447,"children":449},{"alt":7,"src":448},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898187207091051.png",[],{"type":18,"tag":434,"props":451,"children":453},{"code":452},"pyenv install 3.9.0\n\npyenv install 3.7.5\n\npyenv rehash\n\npyenv versions\n\nvirtualenv -p ~/.pyenv/versions/3.9.0/bin/python mindspore-py390\n\nvirtualenv -p ~/.pyenv/versions/3.7.5/bin/python mindspore-py375\n\nsource ~/mindspore-py375/bin/activate\n\npython -V\n\ndeactivate\n\nsource ~/mindspore-py390/bin/activate\n\npython -V\n\ndeactivate\n",[454],{"type":18,"tag":439,"props":455,"children":456},{"__ignoreMap":7},[457],{"type":24,"value":452},{"type":18,"tag":26,"props":459,"children":460},{},[461],{"type":18,"tag":30,"props":462,"children":464},{"alt":7,"src":463},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898568203008936.png",[],{"type":18,"tag":26,"props":466,"children":467},{},[468],{"type":24,"value":469},"直接切换到python 3.9.0的pyenv环境下安装mindspore试试：",{"type":18,"tag":26,"props":471,"children":472},{},[473],{"type":18,"tag":30,"props":474,"children":476},{"alt":7,"src":475},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898622534067909.png",[],{"type":18,"tag":26,"props":478,"children":479},{},[480],{"type":24,"value":481},"好像报包有错误。",{"type":18,"tag":26,"props":483,"children":484},{},[485],{"type":24,"value":486},"修改apt源为国内源：",{"type":18,"tag":26,"props":488,"children":489},{},[490],{"type":24,"value":491},"sudo vi /etc/apt/sources.list",{"type":18,"tag":26,"props":493,"children":494},{},[495],{"type":18,"tag":30,"props":496,"children":498},{"alt":7,"src":497},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898738192091209.png",[],{"type":18,"tag":26,"props":500,"children":501},{},[502],{"type":24,"value":503},"只留下最后两行：",{"type":18,"tag":434,"props":505,"children":507},{"code":506},"deb [arch=armhf] http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi\ndeb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ bullseye main non-free contrib rpi\n",[508],{"type":18,"tag":439,"props":509,"children":510},{"__ignoreMap":7},[511],{"type":24,"value":506},{"type":18,"tag":26,"props":513,"children":514},{},[515],{"type":24,"value":516},"sudo vi /etc/apt/sources.list.d/raspi.list",{"type":18,"tag":26,"props":518,"children":519},{},[520],{"type":18,"tag":30,"props":521,"children":523},{"alt":7,"src":522},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898856729007301.png",[],{"type":18,"tag":26,"props":525,"children":526},{},[527],{"type":24,"value":528},"只留下最后一行",{"type":18,"tag":434,"props":530,"children":532},{"code":531},"deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main\n",[533],{"type":18,"tag":439,"props":534,"children":535},{"__ignoreMap":7},[536],{"type":24,"value":531},{"type":18,"tag":26,"props":538,"children":539},{},[540],{"type":24,"value":541},"sudo apt-get update",{"type":18,"tag":26,"props":543,"children":544},{},[545],{"type":18,"tag":30,"props":546,"children":548},{"alt":7,"src":547},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898911369079076.png",[],{"type":18,"tag":26,"props":550,"children":551},{},[552],{"type":24,"value":553},"报了public key错误",{"type":18,"tag":26,"props":555,"children":556},{},[557],{"type":24,"value":558},"执行以下命令：",{"type":18,"tag":26,"props":560,"children":561},{},[562],{"type":18,"tag":30,"props":563,"children":565},{"alt":7,"src":564},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898950208073718.png",[],{"type":18,"tag":26,"props":567,"children":568},{},[569],{"type":24,"value":570},"再执行sudo apt-get update",{"type":18,"tag":26,"props":572,"children":573},{},[574],{"type":18,"tag":30,"props":575,"children":577},{"alt":7,"src":576},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644898971914076380.png",[],{"type":18,"tag":26,"props":579,"children":580},{},[581],{"type":24,"value":582},"更新成功。",{"type":18,"tag":26,"props":584,"children":585},{},[586],{"type":24,"value":587},"张小白发现本地就是3.9.2的版本，那么不用virualenv环境应该也可以装mindspore吧！",{"type":18,"tag":26,"props":589,"children":590},{},[591],{"type":18,"tag":30,"props":592,"children":594},{"alt":7,"src":593},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644899094715013802.png",[],{"type":18,"tag":26,"props":596,"children":597},{},[598],{"type":24,"value":599},"果然可以",{"type":18,"tag":26,"props":601,"children":602},{},[603],{"type":24,"value":604},"再来验证下：",{"type":18,"tag":26,"props":606,"children":607},{},[608],{"type":18,"tag":30,"props":609,"children":611},{"alt":7,"src":610},"https://bbs-img.huaweicloud.com/blogs/img/20220215/1644899115824038153.png",[],{"type":18,"tag":26,"props":613,"children":614},{},[615],{"type":24,"value":616},"居然验证成功了。",{"type":18,"tag":26,"props":618,"children":619},{},[620],{"type":24,"value":621},"说明MindSpore 1.6.0 漫游树莓派成功。奖励吃树莓派一个！",{"type":18,"tag":623,"props":624,"children":626},"h3",{"id":625},"扫描下方二维码加入mindspore项目",[627],{"type":24,"value":628},"扫描下方二维码加入MindSpore项目",{"type":18,"tag":26,"props":630,"children":631},{},[632],{"type":18,"tag":30,"props":633,"children":635},{"alt":7,"src":634},"https://obs-mindspore-file.obs.cn-north-4.myhuaweicloud.com/file/2022/01/09/984c702452434b10817b9084c6a2cee6.jpg",[],{"type":18,"tag":623,"props":637,"children":638},{"id":7},[],{"type":18,"tag":26,"props":640,"children":641},{},[642],{"type":18,"tag":71,"props":643,"children":646},{"href":644,"rel":645},"http://mp.weixin.qq.com/s?__biz=MzAxMDA1MDM0NQ==&mid=2247541446&idx=1&sn=f397c4aadf6313efe8c16d15cec8db3d&chksm=9b542c80ac23a596935839754dc4690c6c0a20319c1bb23c67bc3bd7b527c8cf6d3c1efcc9a9&scene=21#wechat_redirect",[75],[647],{"type":24,"value":648},"MindSpore官方资料",{"type":18,"tag":26,"props":650,"children":651},{},[652],{"type":18,"tag":71,"props":653,"children":655},{"href":644,"rel":654},[75],[656],{"type":24,"value":657},"GitHub : https://github.com/mindspore-ai/mindspore",{"type":18,"tag":26,"props":659,"children":660},{},[661],{"type":18,"tag":71,"props":662,"children":664},{"href":644,"rel":663},[75],[665],{"type":24,"value":666},"Gitee : https : //gitee.com/mindspore/mindspore",{"type":18,"tag":26,"props":668,"children":669},{},[670],{"type":18,"tag":71,"props":671,"children":673},{"href":644,"rel":672},[75],[674],{"type":24,"value":675},"官方QQ群 : 486831414",{"title":7,"searchDepth":677,"depth":677,"links":678},4,[679,681],{"id":625,"depth":680,"text":628},3,{"id":7,"depth":680,"text":7},"markdown","content:technology-blogs:zh:1045.md","content","technology-blogs/zh/1045.md","technology-blogs/zh/1045","md",1776506111564]