numpy安装
1、下载numpy,网址为:http://www.scipy.org/scipylib/download.html。
2、系统更新。
[myhaspl@localhost~]$ su
密码:
[root@localhostmyhaspl]# yum install update
3、安装相干工具。
[root@localhostmyhaspl]# yum install wget
[root@localhostmyhaspl]# yum install unzip
[root@localhostmyhaspl]# yum install gcc
[root@localhostnumpy⑴.9.0]# yum install python-devel
4、下载numpy源码并解压。
[root@localhostmyhaspl]# wget http://jaist.dl.sourceforge.net/project/numpy/NumPy/1.9.0/numpy⑴.9.0.zip
5、安装numpy。
[root@localhostmyhaspl]# unzip numpy⑴.9.0.zip
[root@localhostmyhaspl]# cd numpy⑴.9.0
[root@localhostnumpy⑴.9.0]# python setup.py install
6、安装终了后,重启 。
[root@localhostnumpy⑴.9.0]# 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⑴6)] on linux2
Type"help", "copyright", "credits" or"license" for more information.
>>>import numpy as np
>>>