How to install Anaconda on RaspBerry Pi 3 Model B

匿名 (未验证) 提交于 2019-12-03 02:56:01

问题:

I would like to know how to install the latest Anaconda version from Continuum on my Raspberry Pi 3 model B. Any help would be appreciated...

回答1:

On Raspberry Pi 3 Model B - Installation of Miniconda (bundled with Python 3)

Go and get the latest version of miniconda for Raspberry pi - made for armv7l processor and bundled with Python 3 (eg.: uname -m)

wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh sudo md5sum Miniconda3-latest-Linux-armv7l.sh sudo /bin/bash Miniconda3-latest-Linux-armv7l.sh 

When installing change the default dir installation from /root/miniconda3 to:

/home/pi/miniconda3 

Edit the .bashrc file

sudo nano /home/pi/.bashrc 

...and add the following line to the end of the file

export PATH="/home/pi/miniconda3/bin:$PATH" 

Save and close this file & reboot Raspberry pi

sudo reboot -h now 

After reboot enter the following command "python --version" which should give you:

Python 3.4.3 :: Continuum Analytics, Inc. 


回答2:

If you're interested in generalizing to different architectures, you could also run the command above and substitute uname -m in with backticks like so:

wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-`uname -m`.sh 


回答3:

I was trying to run this on a pi zero. Turns out the pi zero has an armv6l architecture so the above won't work for pi zero or pi one. Alternatively here I learned that miniconda doesn't have a recent version of miniconda. Instead I used the same instructions posted here to install berryconda3

Conda is now working. Hope this helps those of you interested in running conda on the pi zero!



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!