Page 1 of 1

Downgrade Python 2.7 to 2.6

Posted: Thu Jul 16, 2020 7:06 am
by brit000
I want to downgrade to Python 2.6 Rasbian - but there is no available code online. Anyone can help? Thanks in advance!

Re: Downgrade Python 2.7 to 2.6

Posted: Thu Jul 16, 2020 7:24 am
by dbrion06
Source compiling? (I sometimes use it to upgrade: if you do it too often, it can be messy). if you install python-dev, each and every dependency python2.7 needs will be installed.I bet they are the same for python2.6...)
But ... python2 seems getting obsolete. Do you really need to downgrade (a museum, perhaps)?

Re: Downgrade Python 2.7 to 2.6

Posted: Thu Jul 16, 2020 7:44 am
by brit000
http://wiki.ros.org/ROSberryPi/Installi ... berry%20Pi

this requires 2.6 but i keep getting errors along the way :(

Re: Downgrade Python 2.7 to 2.6

Posted: Thu Jul 16, 2020 7:53 am
by jahboater
https://www.python.org/downloads/release/python-268/

But it sounds like a mad idea, better to get indigo updated.

Building is simply:

./configure
make
sudo make install

Re: Downgrade Python 2.7 to 2.6

Posted: Thu Jul 16, 2020 7:54 am
by fruitoftheloom
brit000 wrote:
Thu Jul 16, 2020 7:44 am
http://wiki.ros.org/ROSberryPi/Installi ... berry%20Pi

this requires 2.6 but i keep getting errors along the way :(

That page is out of date both Raspbian Wheezy and Jessie are no longer supported.

You need to find a tutorial for Raspbian Buster written within the last 12 months.

Re: Downgrade Python 2.7 to 2.6

Posted: Thu Jul 16, 2020 8:00 am
by DougieLawson
brit000 wrote:
Thu Jul 16, 2020 7:06 am
I want to downgrade to Python 2.6 Rasbian - but there is no available code online. Anyone can help? Thanks in advance!
Why - what doesn't work with the standard python2? If you downgrade python, probably, it still won't work.

BTW, you should be looking at migrating to python3 and writing all new code to use python3 as that will be a better use of your time and effort.

Re: Downgrade Python 2.7 to 2.6

Posted: Thu Jul 16, 2020 8:27 am
by bensimmo
Create a virtual environment and install an old Python.

Or look for a suitable Raspbian OS to install it on http://downloads.raspberrypi.org/raspbian/images/ as it was way back when it was created.

OR
use the link provided on the ROS page for help and answers.

OR
form a brief look around to get some understanding.
Use a new version then the Indigo distribution?
http://wiki.ros.org/ROS/Installation

You'll not get help there because looking at http://wiki.ros.org/Distributions it hit End of Life.