Skip to content

Instantly share code, notes, and snippets.

@Dulani
Forked from simoncos/miniconda_on_rpi.md
Created September 15, 2019 00:43
Show Gist options
  • Save Dulani/98ad767a1466e97a32e37b6a1566c127 to your computer and use it in GitHub Desktop.
Save Dulani/98ad767a1466e97a32e37b6a1566c127 to your computer and use it in GitHub Desktop.
Install Miniconda 3 on Raspberry Pi

refer to: https://stackoverflow.com/questions/39371772/how-to-install-anaconda-on-raspberry-pi-3-model-b

{USER}: pi

Install Miniconda 3:

wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
sudo md5sum Miniconda3-latest-Linux-armv7l.sh # (optional) check md5
sudo /bin/bash Miniconda3-latest-Linux-armv7l.sh # -> change default directory to /home/pi/miniconda3
sudo nano /home/pi/.bashrc # -> add: export PATH="/home/pi/miniconda3/bin:$PATH"
sudo reboot -h now

Test:

conda
python --version

If Conda update miss permission of the directory:

sudo chown -R pi miniconda3
@Dulani
Copy link
Author

Dulani commented Sep 15, 2019

Forking the gist because I was looking to install on RPi 2 (arm6l) and wanted to note of the differences:

There was only one build script for arm6l. So, here goes:

wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-armv6l.sh
md5sum Miniconda-3.5.5-Linux-armv6l.sh

Result: 2f37cb775ec3e482280a7bd6b97ee501 Miniconda-3.5.5-Linux-armv6l.sh
MD5 From the website: 2f37cb775ec3e482280a7bd6b97ee501

sudo /bin/bash Miniconda-3.5.5-Linux-armv6l.sh # When prompted change the install directory to: /home/pi/miniconda3

Add to the end of /home/pi/.bashrc:

sudo nano /home/pi/.bashrc # -> add: export PATH="/home/pi/miniconda3/bin:$PATH"
sudo reboot -h now

Continue as above....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment