I am setting up a Big Data cluster and am using Python 2.7.5 (Spark cannot not use Python 3). The servers that I am running are command line based Centos 7 and I am installing python modules using pip version 20.0.2. I have installed numpy version 1.16.1 but python would only import version 1.7.1. I was able to uninstall 1.16.1 but not 1.7.1. When I tried to uninstall again I would receive the following error.
Found existing installation: numpy 1.7.1 ERROR: Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
I have tried to manually delete numpy from /lib/python2.7/site-packages but the folder does not exist. After trying to import numpy in python again it could not find numpy.
Traceback (most recent call last): File "", line 1, in ImportError: No module named numpy
However, I was still unable to install numpy 1.16.1 because of the dependency error with 1.7.1.
I am not looking in the right place to manually delete the numpy module or is there a way I can force update or force delete numpy?
This question may seem like a duplicate to this question but I have tried the answers, however, with no success.