I have the anaconda package and run Spyder. Here is my system information:
anaconda 2018.12 py37_0 Python
I had the same issue when I created a new environment in anaconda, activated it and tried to install a library with pip. What was missing was:
conda install pip
then everything worked for me.