sonettguy
Posts: 115
Joined: Wed Jan 10, 2018 7:29 pm
Location: texas, USA

cannot install miniconda on pi (SOLVED)

Sat May 18, 2019 6:26 pm

I'm trying to install miniconda on a pi zero running raspbian stretch and using python 2.7. I follow the posted instructions. I edit the bash instruction to match my selection of 32-bit miniconda, rather than the 64 that is cited in the instructions.
Installing on Linux
Download the installer:
Miniconda installer for Linux.

In your terminal window, run:
Miniconda:

Code: Select all

bash Miniconda3-latest-Linux-x86.sh
Follow the prompts on the installer screens.
If you are unsure about any setting, accept the defaults. You can change them later.
To make the changes take effect, close and then re-open your terminal window.
Test your installation.
This is what happens.

Code: Select all

Do you accept the license terms? [yes|no]
[no] >>> yes
Miniconda2 will now be installed into this location:
/home/user/miniconda2
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/user/miniconda2] >>> 
PREFIX=/home/user/miniconda2
installing: python-2.7.15-h9bab390_6 ...
Miniconda2-latest-Linux-x86.sh: line
373: /home/user/miniconda2/pkgs/python-2.7.15-h9bab390_6/bin/python:
cannot execute binary file: Exec format error
[email protected]:/home/pi/Downloads $ conda list bash: conda: command not found
The files are downloaded into the microconda2 folder. But, the most basic command doesn't work, likely due to the abort. I removed everything reset and started over, but with the same result. Am I missing something basic? Like, perhaps, a secret to the install folder location? Or, not trying to do it as a sudo user?
Last edited by sonettguy on Sat May 18, 2019 6:53 pm, edited 1 time in total.

klricks
Posts: 6360
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: cannot install miniconda on pi

Sat May 18, 2019 6:38 pm

You appear to be attempting to install x86 code on your RPi. The RPi uses an ARM processor not Intel x86 i386 etc.
If the tutorial does not specifically mention for RPi and give detailed install instructions for the RPi then don't even bother to download it.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

sonettguy
Posts: 115
Joined: Wed Jan 10, 2018 7:29 pm
Location: texas, USA

Re: cannot install miniconda on pi (SOLVED)

Sat May 18, 2019 6:51 pm

OOOoooooh. I knew I missed something basic. Thanks.

fruitoftheloom
Posts: 19483
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: cannot install miniconda on pi (SOLVED)

Sat May 18, 2019 7:09 pm

sonettguy wrote:
Sat May 18, 2019 6:26 pm
I'm trying to install miniconda on a pi zero running raspbian stretch and using python 2.7. I follow the posted instructions. I edit the bash instruction to match my selection of 32-bit miniconda, rather than the 64 that is cited in the instructions.
Installing on Linux
Download the installer:
Miniconda installer for Linux.

In your terminal window, run:
Miniconda:

Code: Select all

bash Miniconda3-latest-Linux-x86.sh
Follow the prompts on the installer screens.
If you are unsure about any setting, accept the defaults. You can change them later.
To make the changes take effect, close and then re-open your terminal window.
Test your installation.
This is what happens.

Code: Select all

Do you accept the license terms? [yes|no]
[no] >>> yes
Miniconda2 will now be installed into this location:
/home/user/miniconda2
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/user/miniconda2] >>> 
PREFIX=/home/user/miniconda2
installing: python-2.7.15-h9bab390_6 ...
Miniconda2-latest-Linux-x86.sh: line
373: /home/user/miniconda2/pkgs/python-2.7.15-h9bab390_6/bin/python:
cannot execute binary file: Exec format error
[email protected]:/home/pi/Downloads $ conda list bash: conda: command not found
The files are downloaded into the microconda2 folder. But, the most basic command doesn't work, likely due to the abort. I removed everything reset and started over, but with the same result. Am I missing something basic? Like, perhaps, a secret to the install folder location? Or, not trying to do it as a sudo user?

MiniConda is for x86 CPU...

...though old you could try:

https://github.com/jjhelmus/berryconda/ ... /README.md
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Stretch.

Return to “Python”