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
#6
I don't know a supported method to update python in place. Such methods must exist because linux package managers update python and preserve installed python modules, but I don't know them.

If you need to reinstall, perhaps using Snippsat's suggestion, you can first list all your installed modules by running

Output:
/usr/local/bin/python2.7 -c "import pkgutil; print([(t[1], t[0].path) for t in pkgutil.iter_modules()])"
You could use a script running pip to reinstall most of them automatically.
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