As mentioned by Tim Roberts, the most common and obvious cause for this is multiple installations of Python, and hence pip. If you're using Jupyter or IPython, you can check your python interpreter using
import sys
sys.executable
This should return a path. In my case: '/home/dev/anaconda3/bin/python'
.
This is the interpreter used by your notebook. (Your system might have a different python installed for other purposes). By default if you are using !pip
from within your notebook, that would be the pip
associated with your notebook's python interpreter. If you are using pip from the terminal (or any place other than the notebook), you might need to use
/whatever/sys/executable/returns/path -m pip install pycirclize
This ensures that you are installing packages using the notebook interpreter's associated pip.
PROCEED WITH CAUTION
You can also probe into the different python versions installed in your system. If you're confident that some other python exists which is not used by your system (probably from some earlier installation), you can safely uninstall it. Otherwise just use the above workaround.