I\'m a newbie and I needed the pySerial and feedparser module for my projects. I\'m running Mountain lion.
I followed the following tutorial so that I could upgrade
If your python and pip binaries are from different versions, modules installed using pip will not be available to python.
Steps to resolve:
pip and python.readlink $(which pip)
../Cellar/python@2/2.7.15_1/bin/pip
readlink $(which python)
/usr/local/bin/python3 <-- another symlink
readlink /usr/local/bin/python3
../Cellar/python/3.7.2/bin/python3
Here you can see an obvious mismatch between the versions 2.7.15_1 and 3.7.2 in my case.
ln -is /usr/local/Cellar/python/3.7.2/bin/pip3 $(which pip)
The -i flag promts you to overwrite if the target exists.
That should do the trick.