Jan-22-2018, 09:38 PM
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
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.