I am having issues installing Anaconda on my Raspberry Pi.
When I attempt to install Anaconda I get this message:
Anaconda3-20.02-Linux-x86_64.sh: line 404:/home/ubuntu/anaconda3/conda.exe: cannot execute binary file: Exec format error
When I try installing installing mini conda i get this:
ERROR: cannot execute native linux-armv7l binary, output from 'unman -a' is: Linux user 5.4.0-1008-raspi #8-Ubuntu SMP Wed Apr 8 11:13:06 UTC 2020 aarch64 aarch64 aaarch64 GNU/Linux
Type yes so that you can initialize Anaconda3. You'll receive some output that states changes made in various directories. One of the lines you receive will thank you for installing Anaconda. You can now activate the installation by sourcing the ~/.
Yes and no. You can download the proper files from Continuum (they make Anaconda/Miniconda), but you need to make certain the distribution your download matches your CPU architecture. In the case of the Raspberry Pi 3B+, this is an ARM chip (which isn't the same type of chip found in a regular desktop PC).
Looks like you're trying to install the 64-bit version but the Raspberry Pi 4 runs on 32-bit. Use the 32-bit versions and you should be okay!
I've recently installed miniconda on my Raspberry Pi 4. I did it using the following commands:
# Update linux
sudo yum update -y
# Install python3
sudo yum install -y python3
# Download miniconda installation (32-bit version)
curl "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-armv7l.sh" -o "Miniconda.sh"
# Run miniconda installation
bash ./Miniconda.sh
Once you've done this, I would also recommend doing the following after restarting your terminal:
# Add Raspberry Pi channel for conda installations
conda config --add channels rpi
# Update conda
conda update conda
# Install Spyder IDE
sudo apt-get install spyder3
The problem is it looks like you're using the wrong shell script to install:
Anaconda3-20.02-Linux-x86_64.sh
The Raspberry PI 4 has ARM architecture and is capable of running ARM-64 instructions if you have the 64-bit version of Ubuntu installed. You can check with uname -a
and if you see aarch64
you can run the 64-bit instruction set.
It looks like your distribution is for 32-bit ARM, due to the armv7l output from uname so you would want to look for packages with the armv7l suffix.
There is not very good ARM support right now with a lot of software but hopefully that will change now that Apple is moving to ARM-64.
If Anaconda offers a shell script it should look like this:
For 32-bit ARM:
For 64-bit ARM:
Conda does not currently provide any aarch64
prebuilt binaries.
You can instead use conda-forge
:
https://github.com/conda-forge/miniforge/#download
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With