As explained here, changing the default python version is a bad idea since some applications depend on the original default python in Mac.
However, one reason why pip install might not be working for you, is that each version of python has its own pip version. So when you use pip install {pkg_name}
, you are only installing the package on the particular python the default pip
command is associated with.
You can check version of python the default pip
command works with by doing: > pip --version
in your terminal.
Try doing:
pip3 install {pkg_name}
Or:
pip2 install {pkg_name}
depending on which version of python Spyder IDE is using
Edit:
You can also more explicitly declare which pip to use by doing:
/full/path/to/python/version -m pip install {pkg_name}