In my MacOS Mojave terminal I wanted to install a python package with pip. At the end it says:
You are using pip version 10.0.1, however version 18.1 is avai
I had the same problem while installing numpy with pip install numpy.
Then I tried
sudo -H pip3 install --upgrade pip
sudo -H pip3 install numpy
It worked well for me.
Explanation :
The -H (HOME) option with sudo sets the HOME environment variable to the home directory of the target user (root by default). By default, sudo does not modify HOME.