PINE64
Updating python - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Updating python (/showthread.php?tid=8409)



Updating python - sinistermrcream - 11-22-2019

I may be a Linux noob on this, but I wanted to update Python. I pulled down 3.8 from the Python SFTP, ran configure, make, make install, and updated alternatives. I chose to make 3.8 "python" as I never use 2.7.

Whoops!

It seems the Pine Advanced Mate Menu is dependent on 2.7 being in place. I lost my menu and the pine key did nothing. A little time spent reading logs and I find a python error message. Set the system to use 2.7 for "python" again, quick restart, and my menu is back.

Still missing my MrFixIt update script icon, so I need to do a little more digging.

Anyone else hit this issue?


RE: Updating python - xalius - 11-22-2019

Is this about Pinebook or Pinebook Pro?


RE: Updating python - sinistermrcream - 11-22-2019

Ah...sorry. PBP. Clicked without reading properly.


RE: Updating python - flyingscorpio - 01-07-2020

Maybe a bit late for a response here but I found that updating Python is never clear because 1. different versions can exist on the same computer and 2. the system is dependent on particular versions on python.
This means that setting python to run python3.8 instead of 2.7 will break parts of the system.
Use aliases instead : 
Code:
echo "alias python='python3.8'" >> ~/.bash_aliases