Just compile it locally, but don’t install it. Then always run this specific python version like this:
(Assuming the directory where you installed this Python version is ~/python
.)
~/python/python myScript.py
Though, I recommend making a backup before messing with Python, because Python is the cancer of scripting languages.