Python Forum
Update Python 2.7 in place
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update Python 2.7 in place
#4
(Jan-22-2018, 06:39 PM)Gribouillis Wrote: Is there no python in /usr/bin/python ? Can you say more about the linux system and why you want to update the system's python.

This is Centos 6.9 and the system provided python is 2.6. There were too many pieces of python based software that wouldn't run with that so 2.7 (a very early 2.7) was installed in /usr/local. Now a couple of years later there are a lot of site-packages installed in that 2.7. I recently ran into a piece of python software which blew up in a mysterious manner running with this old 2.7, but worked with 2.7.14 on another system. Although that issue eventually turned out to be due to having an older version of NumPy installed, it raised the question of how to update 2.7 itself, in place. As opposed to installing yet another version (2.7.14) and then installing all of the may site-packages into it. Updating the site-packages is relatively easy, but I have yet to see a supported method for updating the underlying Python 2.7.
Reply


Messages In This Thread
Update Python 2.7 in place - by mathog - Jan-22-2018, 06:16 PM
RE: Update Python 2.7 in place - by Gribouillis - Jan-22-2018, 06:39 PM
RE: Update Python 2.7 in place - by mathog - Jan-22-2018, 08:32 PM
RE: Update Python 2.7 in place - by snippsat - Jan-22-2018, 07:26 PM
RE: Update Python 2.7 in place - by snippsat - Jan-22-2018, 09:25 PM
RE: Update Python 2.7 in place - by Gribouillis - Jan-22-2018, 09:38 PM
RE: Update Python 2.7 in place - by snippsat - Jan-22-2018, 10:11 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020