Tilde folders
In the event pip uninstall numpy
and reinstallation of Numpy does not work. Review your site-packages folder for sub-folders beginning with a tilde ~
These folders relate to pip installations that got mangled and the installation was aborted part way through. The tilde folders were only ever meant to be tmp folders but ended up becoming permanent. In my case there was a file called ~mpy which was a mangled legacy Numpy folder. This led to compatibility issues and ImportErrors.
These mangled folders can safely be deleted, for further details see this answer