1. Get the source code of numpy
for example:
numpy-1.9.2.zip
2. Unzip source code zip file
unzip numpy-1.9.2.zip
3. build and install numpy
3.1 enter into numpy-1.9.2 directory
cd numpy-1.9.2
3.2 build numpy
python3 setup.py build --fcompiler=gcc
3.3 install numpy
python3 setup.py install
4. verify installation
#!/usr/local/bin/python3
try:
import numpy
except ImportError:
print("numpy is not installed")
print("numpy version = ", numpy.__version__);