轉自:https://blog.csdn.net/abc_321a/article/details/82056019
1.下載源碼包 ,命令如下
wget http://jaist.dl.sourceforge.net/project/numpy/NumPy/1.9.0/numpy-1.9.0.zip
若提示沒有wget,則需要通過“yum install -y wget”安裝wget
2.解壓numpy-1.9.0.zip安裝包
unzip numpy-1.9.0.zip
3.進入numpy-1.9.0
cd numpy-1.9.0
4.在numpy-1.9.0目錄下運行解壓目錄里的setup.py 文件
python setup.py install
安裝過程可能會提示以下錯誤
解決方法:安裝devel
yum install -y python-devel
再重新執行python setup.py install
5.進入到numpy-1.9.0/numpy/tests,啟動python,測試numpy是否安裝成功
再回到pyspark的交互模式,可以正常導入包了