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
#open the bashrc
sudo nano /home/pi/.bashrc
# -> add this line:
export PATH="/home/pi/miniconda3/bin:$PATH"
Test:
conda
python --version
If Conda update miss permission of the directory:
sudo chown -R pi miniconda3
If you see a list with commands you are ready to go.
But how can you use Python versions greater than 3.4 ?
Adding Python 3.5 / 3.6 to Miniconda on Raspberry Pi
After the installation of Miniconda I could not yet install Python versions higher than Python 3.4, but i needed Python 3.5. Here is the solution which worked for me on my Raspberry Pi 4:
First i added the Berryconda package manager by jjhelmus (kind of an up-to-date version of the armv7l version of Miniconda)
conda config --add channels rpi
Unable to install on raspberry pi bulleseye 64 bit version. i
...
....
nstalling: zlib-1.2.8-0 ...
installing: conda-3.16.0-py34_0 ...
installing: pycrypto-2.6.1-py34_0 ...
Miniconda3-latest-Linux-armv7l.sh: line 266: /root/miniconda3/pkgs/python-3.4.3-1/bin/python: No such file or directory
ERROR:
cannot execute native linux-armv7l binary, output from 'uname -a' is:
Linux raspberrypi 5.10.92-v8+ #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022 aarch64 GNU/Linux
pi@raspberrypi:~ $