下载源码并解压numpy-1.9.0.zip

安装相关工具。

[root@localhostmyhaspl]# yum install wget

[root@localhostmyhaspl]# yum install unzip

[root@localhostmyhaspl]# yum install gcc

[root@localhostnumpy-1.9.0]# yum install python-devel

安装numpy。

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

[root@localhostmyhaspl]# cd numpy-1.9.0

[root@localhostnumpy-1.9.0]# python setup.py install

安装完毕后,重启 。

[root@localhostnumpy-1.9.0]# reboot

测试是否安装成功,如果能导入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

>>>

安装matplotlib

yum install python-matplotlib.x86_64

相关文章:

  • 2021-06-01
  • 2021-11-28
  • 2021-10-26
  • 2021-04-13
  • 2022-02-01
  • 2021-09-11
  • 2021-12-01
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案