So when you installed through Atom and VSCode, you installed the extension, and let it do the rest? And when you go to a non Atom/VSCode terminal, your global python install is broken? As that is definitely a bug, if installing the platformio via the extension broke the global python install.
You didn’t install it through pip, or a terminal? As if you did, this applies: