I had this problem for several months now. I have multiple versions of python interpreters located in different folders inside my mac. I have pycharm and anaconda installed. This is so far not an issue as I know that this would enable the choice to configure the environment per project. The problem starts when I try to install a library then it accepts the downloads but library fail to run when imported in the code field. also, the version of the python are the same.
I think it is matter of $Path pointing to the right interpreter.
side problems:
brewdoes not work,pipdoes.- I don't know which packages of libraries installed in which interpreter.
- I am confused with the use of
condavspipvsbrew. do I need all of them for package management or one is sufficient. - I would like to know the easiest way to check the
$PATHand modifies to point to the right interpreter in the easiest way possible.
Thank you for your help .

whichto figure out which executable you're using. For examplewhich python3orwhich pip3. Easiest way to check the $PATH isechoing it