0

Need some advice here. I have an old RPI 2B with ARMv7 Processor rev 5 (v7l) running Raspbian GNU/Linux 9 (stretch).

At the moment it's got python 3.4.3 and a lot of other packages installed with miniconda:

# packages in environment at /home/pi/miniconda3:
conda                     3.16.0                   py34_0  
conda-env                 2.4.2                    py34_0  
decorator                 4.0.2                    py34_0  
flask                     0.10.1                   py34_1  
freetype                  2.5.2                         2  
ipython                   4.0.0                    py34_0  
...

The problem is, most of my code now uses f-strings which aren't supported by Python 3.4.

I tried to upgrade but this is the message I get from miniconda:

pi@raspberrypi01:~ $ conda install python=3.6
Fetching package metadata: ....
Error: No packages found in current linux-armv7l channels matching: python 3.6*

Did you mean one of these?

    python

You can search for this package on anaconda.org with

    anaconda search -t conda python 3.6*

(anaconda search -t conda python 3.6* doesn't work in miniconda of course...)

What are my options? Should I just accept that I need to update the OS or is there a way to upgrade Python without too much fuss (I need to start an experiment tonight and reinstalling a new OS and all the software again will take too long).

3
  • It is hard to see the relevance to Pi. Stretch used 3.5 and Buster 3.7
    – Milliways
    May 5 '20 at 5:58
  • Ah, so does that mean I can upgrade to 3.6 (needed for f-strings)? Any idea how?
    – Bill
    May 5 '20 at 16:09
  • Actually, I just found this list of miniconda distributions and there are none for Linux-arm more recent than 2015-08-24. Did miniconda stop supporting Arm processors or something?
    – Bill
    May 5 '20 at 16:16
0

I found a solution. There is a Conda-based Python distribution called Berryconda that provides newer packages as an additional channel to miniconda.

See this stackoverflow answer for a step-by-step on how to upgrade to Python 3.6. It seems to work.

Looks like it doesn't go as far as Python 3.7. The documentation says it was designed to work with Raspbian Jessie. "Other Linux versions and distributions may or may not work" and is no longer active, so "no recipe will be updated and no packages will be added" it says.

1
  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year.
    – Ingo
    May 10 '20 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.