numpy在centos下的安裝

安裝相關工具。

[root@localhostmyhaspl]# yum install wget

[root@localhostmyhaspl]# yum install unzip

[root@localhostmyhaspl]# yum install gcc

[[email protected]]# yum install Python-devel

4、下載numpy源碼並解壓。

[root@localhostmyhaspl]# wget http://jaist.dl.sourceforge.NET/project/numpy/NumPy/1.9.0/numpy-1.9.0.zip

5、安裝numpy。

[root@localhostmyhaspl]# unzip numpy-1.9.0.zip

[root@localhostmyhaspl]# cd numpy-1.9.0

[[email protected]]# python setup.py install

6、安裝完畢後,重啓 。

[[email protected]]# reboot

7、測試是否安裝成功,如果能導入numpy庫,表示安裝成功。

[myhaspl@localhost~]$ python

Python2.7.5 (default, Jun 17 2014, 18:11:42)

[GCC4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2

Type"help", "copyright", "credits" or"license" for more information.

>>>import numpy as np

>>>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章