There are (at least) three possible ways to install a python package in your $HOME/.local directory, and I will review two of the. All of them have to be followed by a configuration of your environment, more specifically the PYTHONPATH
pip is the easy way to install python packages
pip install numpy --user
Collecting numpy
Downloading https://files.pythonhosted.org/packages/1a/2e/4e298c92b1fced64a4414ada9af3253a91083b92b131c2b10c057c507982/numpy-1.15.1-cp37-cp37m-manylinux1_x86_64.whl (13.8MB)
100% |################################| 13.9MB 1.7MB/s