I've struggled with this too recently. The solution I've found was to ensure that the "Python" version that's associated with Python files, is the one with a rocket in its icon.