Python version

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

Python version

Post by pakikje »

Hello y'all,

I need a higher version of Python on my dietpi (sbc = Orange Pi plus). Is this possible without breaking the stability/installation on the dietpi?

ps: i need at least Python 3.4.4 (for the homeassistant in combination with the ikea-gateway/tradfri)
secpri
Posts: 21
Joined: Sun Nov 19, 2017 6:54 pm

Re: Python version

Post by secpri »

Dear pakikje,

i have the same issue as you, and i have done it as follows.
My Testmachine is the Odroid HC1 with the Kernel 4.9 test image for the moment, but mentioned that i do not know if it occurs any problems.

Code: Select all

apt-get install make
wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz
tar xJf Python-3.6.3.tar.xz
cd Python-3.6.3
./configure
make			
make install
reboot
Note: the "make" takes about 5-10 minutes on Odroic HC1, and then further 5 minutes at "make install".

That looks good so far, let's start testing :mrgreen:
Attachments
python36.JPG
pakikje
Posts: 124
Joined: Fri Nov 11, 2016 3:04 pm

Re: Python version

Post by pakikje »

thnx man,

I followed this instruction i found earlier:

#get source
cd /home
wget https://www.python.org/ftp/python/3.4.4 ... 4.4.tar.xz
tar xf Python-3.4.4.tar.xz
cd ./Python-3.4.4
#compile
./configure
make
make install
#switch to new version
update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3 10
#check: python3 --version

(i am updating to the version you suggested!)
User avatar
WarHawk
Posts: 631
Joined: Thu Jul 20, 2017 8:55 am

Re: Python version

Post by WarHawk »

If you are going to build a package...why not use checkinstall (vs make install)...then build a .deb package and list a repository for it...so we all can enjoy it

More info on checkinstall
https://www.linuxjournal.com/content/us ... ges-source
Post Reply